ICE in g++-980921, short example

Paul Henning phenning@cs.uiowa.edu
Thu Oct 1 05:44:00 GMT 1998


Reading specs from
/usr/local/app/egcs-19980921/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.92.11/specs
gcc version egcs-2.92.11 19980921 (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);
}


This same ICE was reported for egcs-19980715 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



More information about the Gcc-bugs mailing list