Internal compiler error

Martin von Loewis martin@mira.isdn.cs.tu-berlin.de
Sat Nov 7 00:34:00 GMT 1998


> Please let me know if this bug has already been addressed.  Oh, I have one
> clue, too: the bug seems to be related to the fact that the class 'string'
> hasn't been defined.  The internal error disappears if you change 'string'
> to something like 'int'.

Thanks for your bug report. This bug has been fixed in the development
branch; egcs now reports (correctly)

a.cc:5: type/value mismatch at argument 1 in template parameter list for `template <class _Key, class _Tp, class _Compare = struct less<_Key>, class _Alloc = class allocator<_T2>> map<_Key,_Tp,_Compare,_Alloc>'
a.cc:5:   expected a type, got `string'

This is due to the fact that string is not defined. It is easy to
correct your source code:

#include <string>

Hope this helps,
Martin



More information about the Gcc-bugs mailing list