internal compiler error
Martin von Loewis
martin@mira.isdn.cs.tu-berlin.de
Tue May 26 14:10:00 GMT 1998
Hi Maurizio,
Thanks for your report. On egcs-2.91.32 19980525, I get
a.cc:9: type/value mismatch at argument 1 in template parameter list for `template <class C * const {anon}> D<{anon}>'
a.cc:9: expected a constant of type `C *', got `T'
a.cc:9: syntax error before `;'
a.cc:9: warning: ANSI C++ forbids declaration `' with no type
a.cc:9: abstract declarator `int' used as declaration
a.cc: In function `int main()':
a.cc:12: `d' undeclared (first use this function)
a.cc:12: (Each undeclared identifier is reported only once
a.cc:12: for each function it appears in.)
So this seems to be fixed (although I think there is still some
discussion whether your example really foward-declares class C).
Martin
More information about the Gcc-bugs
mailing list