public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: Andrew Thomas Pinski <pinskia@gmail.com> To: "gcc-bugzilla@gcc.gnu.org" <gcc-bugzilla@gcc.gnu.org> Cc: "gcc-bugs@gcc.gnu.org" <gcc-bugs@gcc.gnu.org> Subject: Re: [Bug c++/39751] New: ICE in cp_lexer_new_from_tokens, at cp/parser.c:342 Date: Mon, 13 Apr 2009 15:06:00 -0000 [thread overview] Message-ID: <370BEBE4-7BDF-4331-9344-E9FA2B966282@gmail.com> (raw) In-Reply-To: <bug-39751-14599@http.gcc.gnu.org/bugzilla/> Sent from my iPhone On Apr 13, 2009, at 7:43 AM, "gcc at abeckmann dot de" <gcc-bugzilla@gcc.gnu.org > wrote: > This is a 4.5.0 regression on invalid code: > > ========== 8< ========== > template < typename > > struct A > { > A < struct > { > f () : > ========== >8 ========== > > ---------- 4.5.0 ---------- > $ x86_64-linux-gnu-g++-trunk -v -c ice-cp_parser_c-342.ii > > Using built-in specs. > Target: x86_64-unknown-linux-gnu > Configured with: ../gcc-trunk/configure > --prefix=/opt/software/gcc-x86_64/gcc-trunk --program-suffix=-trunk > --enable-languages=c,c++ > Thread model: posix > gcc version 4.5.0 20090410 (experimental) (GCC) > COLLECT_GCC_OPTIONS='-v' '-c' '-shared-libgcc' '-mtune=generic' > > /opt/software/gcc-x86_64/gcc-trunk/libexec/gcc/x86_64-unknown-linux- > gnu/4.5.0/cc1plus > -fpreprocessed ice-cp_parser_c-342.ii -quiet -dumpbase ice- > cp_parser_c-342.ii > -mtune=generic -auxbase ice-cp_parser_c-342 -version -o /tmp/ > ccqQZWYs.s > GNU C++ (GCC) version 4.5.0 20090412 (experimental) (x86_64-unknown- > linux-gnu) > compiled by GNU C version 4.5.0 20090410 (experimental), GMP > version > 4.2.2, MPFR version 2.3.1. > GGC heuristics: --param ggc-min-expand=30 --param ggc-min- > heapsize=4096 > Compiler executable checksum: b13346d60276f3352c4b7dd22e3889d7 > ice-cp_parser_c-342.ii:6: error: ISO C++ forbids declaration of > ‘f’ with no > type > ice-cp_parser_c-342.ii:6: error: expected ‘}’ at end of input > ice-cp_parser_c-342.ii:6: error: expected template-argument at end > of input > ice-cp_parser_c-342.ii:6: error: expected ‘>’ at end of input > ice-cp_parser_c-342.ii:6: error: expected ‘::’ at end of input > ice-cp_parser_c-342.ii:6: error: expected unqualified-id at end of > input > ice-cp_parser_c-342.ii:6: error: expected ‘;’ at end of input > ice-cp_parser_c-342.ii:6: error: expected ‘}’ at end of input > ice-cp_parser_c-342.ii:6: internal compiler error: in > cp_lexer_new_from_tokens, > at cp/parser.c:342 > -------------------- > > using 4.4.0 or older the compilation terminates with > > ice-cp_parser_c-342.ii:6: confused by earlier errors, bailing out Then this is not a regression :). That message is the same as an ice but just for releases;). > > > > -- > Summary: ICE in cp_lexer_new_from_tokens, at cp/parser.c:342 > Product: gcc > Version: 4.5.0 > Status: UNCONFIRMED > Severity: normal > Priority: P3 > Component: c++ > AssignedTo: unassigned at gcc dot gnu dot org > ReportedBy: gcc at abeckmann dot de > > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39751 >
next prev parent reply other threads:[~2009-04-13 15:06 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-04-13 14:43 gcc at abeckmann dot de 2009-04-13 14:47 ` [Bug c++/39751] " paolo dot carlini at oracle dot com 2009-04-13 15:05 ` hjl dot tools at gmail dot com 2009-04-13 15:06 ` Andrew Thomas Pinski [this message] 2009-04-13 15:06 ` pinskia at gmail dot com 2009-04-13 15:10 ` paolo dot carlini at oracle dot com 2009-04-13 15:12 ` paolo dot carlini at oracle dot com 2010-03-03 23:45 ` zsojka at seznam dot cz
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=370BEBE4-7BDF-4331-9344-E9FA2B966282@gmail.com \ --to=pinskia@gmail.com \ --cc=gcc-bugs@gcc.gnu.org \ --cc=gcc-bugzilla@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).