This is GCC Bugzilla
This is GCC Bugzilla Version 2.20+
View Bug Activity | Format For Printing | Clone This Bug
/* not preprocessed */ int foo() { int yd; float in[1][yd]; static void bar() { printf("%p\n",in[0]); } } Release: version 3.2.1, 3.2.2 Environment: Linux 2.4.18, Mac OS X 10.2.4 How-To-Repeat: gcc -c test0.c test0.c: In function `bar': test0.c:7: Internal compiler error in expand_expr, at expr.c:6454 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
Fix: Fixed in GCC 3.3 with: http://gcc.gnu.org/ml/gcc-patches/2003-04/msg00018.html
State-Changed-From-To: open->analyzed State-Changed-Why: Confirmed also on x86 linux. Works with 3.0 and mainline, but fails with 3.2 and 3.3: g/x> /home/bangerth/bin/gcc-3.0.4/bin/gcc -c x.c g/x> /home/bangerth/bin/gcc-3.2.2-pre/bin/gcc -c x.c x.c: In function `bar': x.c:6: Internal compiler error in expand_expr, at expr.c:6464 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. g/x> /home/bangerth/bin/gcc-3.3-pre/bin/gcc -c x.c x.c: In function `bar': x.c:6: internal compiler error: in expand_expr, at expr.c:6818 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. g/x> /home/bangerth/bin/gcc-3.4-pre/bin/gcc -c x.c
State-Changed-From-To: analyzed->closed State-Changed-Why: Fixed for 3.3.