This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: internal compiler error
- To: vitale at esat dot kuleuven dot ac dot be
- Subject: Re: internal compiler error
- From: Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Tue, 26 May 1998 23:06:34 +0200
- CC: egcs-bugs at cygnus dot com
- References: <874syd309h.fsf@naxos.esat.kuleuven.ac.be>
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