g++ internal compiler error: from bad template def.

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Fri Feb 25 00:37:00 GMT 2000


>   My reading of the draft standard (at least the one I have) would lead
> me to believe that the code above is wrong and should be flagged as
> such.

Thanks for your bug report. The mainline compiler (2.96 20000223
(experimental)) says

a.cc:3: no default argument for `C'
a.cc: In function `int main ()':
a.cc:7: template argument 3 is invalid
a.cc:7: ISO C++ forbids declaration of `oops' with no type

so it appears the bug has been fixed.

Regards,
Martin




More information about the Gcc-bugs mailing list