This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: internal compiler error


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]