gcc bug with c++: internal compiler error
Tuukka Toivonen
tuukkat@ees2.oulu.fi
Fri Sep 24 08:06:00 GMT 1999
/* When compiling this source with
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
It gives
bug.cc: In method `void Tokenizer::next_token()':
bug.cc:20: Internal compiler error.
On Linux 2.0.38, Pentium, glibc 2.0.6.
*/
#include <string>
class Tokenizer {
public:
void next_token();
};
void Tokenizer::next_token()
{
restart:
string token = "";
enum State { Anything }; // line # 20
}
(the same bug is in gcc version 2.95.1 19990816 (release)
on a Sun SparcStation)
bug.ii.bz2 is attached in this mail.
Yes, I do use goto :->
More information about the Gcc-bugs
mailing list