Compiling the following short test code with '-frepo' switch on triggers a
segfault in Debian Sid's current gcc-4.0.
------test.cpp-----------------------------------------
class A
{
};
void foo()
{
do
{
throw new A;
} while (0);
}
-------------------------------------------------------
[EMAIL PROTECTED]:~/tmp/gccbug$ g++ -c -Wall -frepo test.cpp
test.cpp:10: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.0/README.Bugs>.
Without -frepo there's no error.
Output of g++ -v follows. As it should be trivial to check for anyone with a
newer release/snapshot installed I haven't checked if this bug persists in newer
versions.
--
Summary: Internal compiler error when -frepo is specified
Product: gcc
Version: 4.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: g dot u dot g dot i at gmx dot de
CC: g dot u dot g dot i at gmx dot de,gcc-bugs at gcc dot
gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23388