ICE in latest snapshot c++

Oskar Enoksson osken393@student.liu.se
Thu Mar 4 12:02:00 GMT 1999


Here is another short code snippet causing an ICE in the latest
snapshot (egcs-2.93.10) on my platform alphaev56-dec-osf4.0d. The problem
this time is an array length which must be calculated from a template
argument. This bug is not in 1.1.2-pre2.

template<int N>
void foo() {
  int bar[N+1];
}

int main() {
  foo<3>();
}

Regards
/Oskar



More information about the Gcc-bugs mailing list