From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7034 invoked by alias); 13 Apr 2009 15:06:04 -0000 Received: (qmail 6498 invoked by uid 22791); 13 Apr 2009 15:05:47 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from rv-out-0708.google.com (HELO rv-out-0708.google.com) (209.85.198.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 13 Apr 2009 15:05:42 +0000 Received: by rv-out-0708.google.com with SMTP id l33so1732606rvb.56 for ; Mon, 13 Apr 2009 08:05:38 -0700 (PDT) Received: by 10.140.132.4 with SMTP id f4mr2783300rvd.291.1239635138758; Mon, 13 Apr 2009 08:05:38 -0700 (PDT) Received: from ?192.168.0.10? (adsl-99-27-200-175.dsl.pltn13.sbcglobal.net [99.27.200.175]) by mx.google.com with ESMTPS id g31sm9737264rvb.8.2009.04.13.08.05.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 13 Apr 2009 08:05:38 -0700 (PDT) References: Message-Id: <370BEBE4-7BDF-4331-9344-E9FA2B966282@gmail.com> From: Andrew Thomas Pinski To: "gcc-bugzilla@gcc.gnu.org" In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (iPhone Mail 5H11) 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 Cc: "gcc-bugs@gcc.gnu.org" X-IsSubscribed: yes Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-04/txt/msg01107.txt.bz2 Sent from my iPhone On Apr 13, 2009, at 7:43 AM, "gcc at abeckmann dot de" wrote: > This is a 4.5.0 regression on invalid code: > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 8< =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > template < typename > > struct A > { > A < struct > { > f () : > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >8 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > ---------- 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=3D/opt/software/gcc-x86_64/gcc-trunk --program-suffix=3D-trunk > --enable-languages=3Dc,c++ > Thread model: posix > gcc version 4.5.0 20090410 (experimental) (GCC) > COLLECT_GCC_OPTIONS=3D'-v' '-c' '-shared-libgcc' '-mtune=3Dgeneric' > > /opt/software/gcc-x86_64/gcc-trunk/libexec/gcc/x86_64-unknown-linux-=20 > gnu/4.5.0/cc1plus > -fpreprocessed ice-cp_parser_c-342.ii -quiet -dumpbase ice-=20 > cp_parser_c-342.ii > -mtune=3Dgeneric -auxbase ice-cp_parser_c-342 -version -o /tmp/=20 > ccqQZWYs.s > GNU C++ (GCC) version 4.5.0 20090412 (experimental) (x86_64-unknown-=20 > linux-gnu) > compiled by GNU C version 4.5.0 20090410 (experimental), GMP=20=20 > version > 4.2.2, MPFR version 2.3.1. > GGC heuristics: --param ggc-min-expand=3D30 --param ggc-min-=20 > heapsize=3D4096 > Compiler executable checksum: b13346d60276f3352c4b7dd22e3889d7 > ice-cp_parser_c-342.ii:6: error: ISO C++ forbids declaration of=20=20 > =E2=80=98f=E2=80=99 with no > type > ice-cp_parser_c-342.ii:6: error: expected =E2=80=98}=E2=80=99 at end of i= nput > ice-cp_parser_c-342.ii:6: error: expected template-argument at end=20=20 > of input > ice-cp_parser_c-342.ii:6: error: expected =E2=80=98>=E2=80=99 at end of i= nput > ice-cp_parser_c-342.ii:6: error: expected =E2=80=98::=E2=80=99 at end of = input > ice-cp_parser_c-342.ii:6: error: expected unqualified-id at end of=20=20 > input > ice-cp_parser_c-342.ii:6: error: expected =E2=80=98;=E2=80=99 at end of i= nput > ice-cp_parser_c-342.ii:6: error: expected =E2=80=98}=E2=80=99 at end of i= nput > ice-cp_parser_c-342.ii:6: internal compiler error: in=20=20 > 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=20=20 but just for releases;). > > > > --=20 > 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=3D39751 >