This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
ICE from g++-980715, w/small test case
- To: egcs-bugs at cygnus dot com
- Subject: ICE from g++-980715, w/small test case
- From: Paul Henning <phenning at cs dot uiowa dot edu>
- Date: Fri, 17 Jul 1998 11:40:51 -0500 (CDT)
I get an ICE with g++ -O2 with egcs-19980715:
nikita% g++ -v
Reading specs from
/usr/local/app/egcs-19980715/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.50/specs
gcc version egcs-2.91.50 19980714 (gcc2 ss-980609 experimental)
nikita% g++ -O2 -c enum.ii
enum.C: In function `int ha()':
enum.C:16: Internal compiler error.
enum.C:16: Please submit a full bug report to `egcs-bugs@cygnus.com'.
nikita% cat enum.ii
# 1 "enum.C"
struct E
{
int f(int);
};
int ha()
{
enum {X = 0};
int A, C;
E vList[10];
A = (C + 1) % 3;
vList[1].f(A);
}
#!/bin/sh
# This file was generated automatically by configure. Do not edit.
# This directory was configured as follows:
../egcs-199800715/configure --with-gcc-version-trigger=/home/phenning/EGCS/Build
/egcs-199800715/gcc/version.c --host=i686-pc-linux-gnu --prefix=/usr/local/app/e
gcs-19980715 --with-gnu-as --with-gnu-ld --enable-shared --norecursion
# using "mh-frag" and "mt-frag"
This same bug was previously reported for egcs-19980707 in message:
<a
href="http://www.cygnus.com/ml/egcs-bugs/1998-Jul/0256.html">http://www.cygnus.com/ml/egcs-bugs/1998-Jul/0256.html</a>
Paul Henning
paul-henning@uiowa.edu http://www.cs.uiowa.edu/~phenning