This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc bug with c++: internal compiler error
- To: bug-gcc at gnu dot org
- Subject: gcc bug with c++: internal compiler error
- From: Tuukka Toivonen <tuukkat at ees2 dot oulu dot fi>
- Date: Fri, 24 Sep 1999 18:05:01 +0300 (EET DST)
/* 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 :->
bug.ii.bz2