From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3962 invoked by alias); 25 Oct 2011 05:29:45 -0000 Received: (qmail 3946 invoked by uid 22791); 25 Oct 2011 05:29:43 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,SARE_HEAD_8BIT_SPAM,SARE_SUB_ENC_UTF8x2 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 25 Oct 2011 05:29:30 +0000 From: "cas43 at cs dot stanford.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/50861] New: ICE: internal compiler error: tree check:=?UTF-8?Q?=20expected=20tree=20that=20contains=20=E2=80=98decl=20minimal=E2=80=99=20structure?=,=?UTF-8?Q?=20have=20=E2=80=98error=5Fmark=E2=80=99=20in=20tsubst=5Fcopy=5Fand=5Fbuild?=, at cp/pt.c:13526 Date: Tue, 25 Oct 2011 05:29: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: cas43 at cs dot stanford.edu 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: 2011-10/txt/msg02529.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D50861 Bug #: 50861 Summary: ICE: internal compiler error: tree check: expected tree that contains =E2=80=98decl minimal=E2=80=99 struc= ture, have =E2=80=98error_mark=E2=80=99 in tsubst_copy_and_build, = at cp/pt.c:13526 Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: cas43@cs.stanford.edu Created attachment 25607 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D25607 Program that causes g++ to ICE. g++ ICE's with error "internal compiler error: tree check: expected tree th= at contains =E2=80=98decl minimal=E2=80=99 structure, have =E2=80=98error_mark= =E2=80=99 in tsubst_copy_and_build, at cp/pt.c:13526" Command to reproduce: /home/cas43/new-gcc/inst/bin/g++ prog.cpp -c -O3 Full diagnostic: prog.cpp:1:40: error: there are no arguments to =E2=80=98k=E2=80=99 that de= pend on a template parameter, so a declaration of =E2=80=98k=E2=80=99 must be available [-fper= missive] prog.cpp:1:40: note: (if you use =E2=80=98-fpermissive=E2=80=99, G++ will a= ccept your code, but allowing the use of an undeclared name is deprecated) prog.cpp: In constructor =E2=80=98A::A(int) [with T =3D int]=E2=80=99: prog.cpp:2:22: error: use of parameter from containing function prog.cpp:2:6: error: =E2=80=98int k=E2=80=99 declared here prog.cpp:2:22: error: =E2=80=98k=E2=80=99 was not declared in this scope, a= nd no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] prog.cpp:2:22: internal compiler error: tree check: expected tree that cont= ains =E2=80=98decl minimal=E2=80=99 structure, have =E2=80=98error_mark=E2=80=99= in tsubst_copy_and_build, at cp/pt.c:13526 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Compiler Version: Using built-in specs. COLLECT_GCC=3D/home/cas43/new-gcc/inst/bin/g++ COLLECT_LTO_WRAPPER=3D/home/cas43/new-gcc/inst/libexec/gcc/x86_64-unknown-l= inux-gnu/4.7.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../current-gcc/configure --prefix=3D/home/cas43/new-gcc/in= st Thread model: posix gcc version 4.7.0 20111024 (experimental) (GCC)