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]
Other format: [Raw text]

[Bug c++/39751] ICE in cp_lexer_new_from_tokens, at cp/parser.c:342


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39751

--- Comment #8 from Zdenek Sojka <zsojka at seznam dot cz> 2011-03-21 14:34:14 UTC ---
(In reply to comment #7)
> I just checked again and this problem seems to be fixed in trunk now.

It still crashes for me (with the testcase from comment #0):
$ gcc-4.7.0-pre9999 xxx.C
xxx.C:5:1: error: types may not be defined in template arguments
xxx.C:6:4: error: ISO C++ forbids declaration of âfâ with no type
[-fpermissive]
xxx.C:6:6: error: expected â}â at end of input
xxx.C:6:6: error: expected template-argument at end of input
xxx.C:6:6: error: expected â>â at end of input
xxx.C:6:6: error: expected â::â at end of input
xxx.C:6:6: error: expected unqualified-id at end of input
xxx.C:6:6: error: expected â;â at end of input
xxx.C:6:6: error: expected â}â at end of input
xxx.C:6:6: internal compiler error: in cp_lexer_new_from_tokens, at
cp/parser.c:395
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.


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