From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21832 invoked by alias); 8 Feb 2013 23:10:16 -0000 Received: (qmail 21590 invoked by uid 48); 8 Feb 2013 23:09:53 -0000 From: "novulae at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/56260] New: GCC hangs/crashes on potentially invalid source Date: Fri, 08 Feb 2013 23:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: novulae at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: 2013-02/txt/msg00878.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D56260 Bug #: 56260 Summary: GCC hangs/crashes on potentially invalid source Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: novulae@hotmail.com This came from http://www.glenmccl.com/cpp11.htm, and was part of the free sample of tests. Originally this hung for me. Now it just causes a ICE/segfault. This was with GCC 4.7.2, on Ubuntu 12 x86_64. $ gcc -v Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/data00/opt/pkg/gcc-4.7.2/bin/../libexec/gcc/x86_64-u= nknown-linux-gnu/4.7.2/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../gcc-4.7.2/configure --prefix=3D/opt/pkg/gcc-4.7.2 --program-suffix=3D-4.7.2 --enable-languages=3Dc,c++ --disable-multilib Thread model: posix gcc version 4.7.2 (GCC)=20 $ cat test.cpp // [dcl.fct.def] // autogenerated crash test // Copyright (C) 2009 Glen McCluskey & Associates LLC. All Rights Reserved. void f() { [ ] ( struct A { A ( ) =3D default ; A(const A&) =3D delete; } * ) { return= 0 ; } ( 0 ) ;=20 } $ g++ -c -std=3Dc++11 test.cpp test.cpp: In function =C3=A2=E2=82=AC=CB=9Cvoid f()=C3=A2=E2=82=AC=E2=84=A2: test.cpp:7:16: error: types may not be defined in parameter types g++: internal compiler error: Segmentation fault (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See for instructions.