This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcc bug with c++: internal compiler error


/* 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]