Martin v. Loewis martin@mira.isdn.cs.tu-berlin.de
Sun Oct 31 23:03:00 GMT 1999

> Attached is a very very short example program that causes this bug.  The
> program itself has an error which should abort compilation, however,
> there should be a message printed regarding the type of error, while an
> "internal compiler error" is reported.

Thanks for your bug report. gcc-2.95.1 reports

comperror.cpp: In instantiation of `test<int>':
comperror.cpp:14:   instantiated from here
comperror.cpp:14: base type `int' fails to be a struct or class type
comperror.cpp: In function `int main()':
comperror.cpp:7: `test<int>::test()' is private
comperror.cpp:14: within this context
comperror.cpp: In method `test<int>::test()':
comperror.cpp:14:   instantiated from here
comperror.cpp:8: `CallBase' undeclared (first use this function)
comperror.cpp:8: (Each undeclared identifier is reported only once
comperror.cpp:8: for each function it appears in.)

so the bug has been fixed.


More information about the Gcc-bugs mailing list