bug report: gcc internal error 980711
Martin v. Loewis
Sun Oct 31 23:03:00 GMT 1999
> I have a very simple bit of C++ code that causes gcc to crash with an
> internal compiler error.
Thanks for your bug report. gcc-2.95.1, when invoked on the
preprocessor output you send,
foo.cpp: At top level:
foo.cpp:5: ANSI C++ forbids declaration `allocator' with no type
foo.cpp:5: template-id `allocator<T>' used as a declarator
foo.cpp:5: parse error before `;'
The problem is that egcs 1.1 does not provide std::allocator, and it
crashes in this case. When invoked on the original source, gcc 2.95
compiles it fine; gcc now provides an allocator class. I suggest to
More information about the Gcc-bugs