This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
C++ ICE, in scan_region, at except.c:2808
- To: gcc-bugs at gcc dot gnu dot org
- Subject: C++ ICE, in scan_region, at except.c:2808
- From: Peter Österlund <f90-pos at nada dot kth dot se>
- Date: Sun, 20 Aug 2000 00:50:07 +0200 (MET DST)
Current CVS g++ crashes when compiling the source code below.
------------------------------------------------
ppro:~$ g++ -v
Reading specs from /home/petero/gcc/lib/gcc-lib/i686-pc-linux/2.96/specs
gcc version 2.96 20000819 (experimental)
ppro:~$ g++ -O -c bug2.C
bug2.C: In function `void g (int, B)':
bug2.C:12: Internal compiler error in scan_region, at except.c:2808
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
ppro:~$ cat bug2.C
struct A {
~A();
};
struct B {
A f;
};
void f();
void g(int d, B c)
{
for (;;) {
if (!d)
return;
f();
}
}
void h()
{
B b;
g(0, b);
}
------------------------------------------------
I bootstrapped the compiler with
CFLAGS="-g -O2 -Wall -march=pentiumpro -mpentiumpro -fstrict-aliasing"
--
Peter Österlund Email: peter.osterlund@mailbox.swipnet.se
Sköndalsvägen 35 f90-pos@nada.kth.se
S-128 66 Sköndal Homepage: http://home1.swipnet.se/~w-15919
Sweden Phone: +46 8 942647