This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
ICE in `expand_expr', at expr.c:6524 (G++ 2.96 19991012, i686-pc-linux-gnu)
- To: gcc-bugs at gcc dot gnu dot org
- Subject: ICE in `expand_expr', at expr.c:6524 (G++ 2.96 19991012, i686-pc-linux-gnu)
- From: Raja R Harinath <harinath at cs dot umn dot edu>
- Date: 12 Oct 1999 17:53:39 -0500
Hi,
The following program causes an ICE with a recent CVS checkout.
enum ReservedName {
rIGNORE,
rINCLUDE,
};
void maybeStatusKeyword()
{
static const ReservedName statusKeywords[] = { rINCLUDE, rIGNORE };
for (int i = 0; i < 2; i++) {
ReservedName r = statusKeywords[i];
}
}
Here's a sample run:
han ~/z/z > c++ -v -c expr-1.cc
Reading specs from /home/grad04/harinath/linux/lib/gcc-lib/i686-pc-linux-gnu/2.96/specs
gcc version 2.96 19991012 (experimental)
/home/grad04/harinath/linux/lib/gcc-lib/i686-pc-linux-gnu/2.96/cpp -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=96 -D__cplusplus -D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentiumpro__ expr-1.cc /tmp/cceFxcKr.ii
cpp: GNU CPP version 2.96 19991012 (experimental) (i386 Linux/ELF)
cpp: ignoring nonexistent directory `/usr/local/include'
#include "..." search starts here:
#include <...> search starts here:
/home/grad04/harinath/include
/home/grad04/harinath/include/g++-3
/home/grad04/harinath/linux/i686-pc-linux-gnu/include
/home/grad04/harinath/linux/lib/gcc-lib/i686-pc-linux-gnu/2.96/include
/usr/include
End of search list.
/home/grad04/harinath/linux/lib/gcc-lib/i686-pc-linux-gnu/2.96/cc1plus /tmp/cceFxcKr.ii -quiet -dumpbase expr-1.cc -version -o /tmp/ccY3UJKK.s
GNU C++ version 2.96 19991012 (experimental) (i686-pc-linux-gnu) compiled by GNU C version 2.96 19991012 (experimental).
expr-1.cc: In function `void maybeStatusKeyword ()':
expr-1.cc:10: Internal compiler error in `expand_expr', at expr.c:6524
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions
- Hari
--
Raja R Harinath ------------------------------ harinath@cs.umn.edu
"When all else fails, read the instructions." -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing." -- Roy L Ash