internal compiler error on virtual destructor

Bug #1800628 reported by Dominik Wójt on 2018-10-30
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Arm Embedded Toolchain
Medium
Mihail-Calin Ionescu

Bug Description

I am receiving an internal compiler error on this minimal example. The example is extracted from production code, which I am trying to port to GCC.

From console:
dwojt@debian:~/debug0$ ~/sorted/mpi540/LPC/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-g++ --version
arm-none-eabi-g++ (GNU Tools for Arm Embedded Processors 7-2018-q2-update) 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907]
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

dwojt@debian:~/debug0$ ~/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-g++ -mlong-calls -ffunction-sections -c gcc-arm-error.cpp -o gcc-arm-error.cpp.obj
gcc-arm-error.cpp: In member function 'virtual void* C::_ZThn4_N1CD1Ev()':
gcc-arm-error.cpp:21:1: internal compiler error: in gen_reg_rtx, at emit-rtl.c:1026
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.

The "-mlong-calls -ffunction-sections" parameters are necessary to reproduce the error. Compiler version is downloaded from https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads

Dominik Wójt (domin144) wrote :
Changed in gcc-arm-embedded:
status: New → Triaged
status: Triaged → Confirmed
importance: Undecided → Medium
assignee: nobody → Mihail-Calin Ionescu (mihail.ionescu)
milestone: none → 8-2018-q4-major
Changed in gcc-arm-embedded:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers