From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15558 invoked by alias); 24 Oct 2011 10:28:31 -0000 Received: (qmail 15547 invoked by uid 22791); 24 Oct 2011 10:28:30 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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; Mon, 24 Oct 2011 10:28:15 +0000 From: "cas43 at cs dot stanford.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/50848] New: ICE in derived template class missing using for member of template base class Date: Mon, 24 Oct 2011 10:28: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/msg02430.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D50848 Bug #: 50848 Summary: ICE in derived template class missing using for member of template base class 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 25588 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D25588 Source file causing ICE Compiling the attached source file causes g++ to ICE. Command to reproduce: /home/cas43/new-gcc/inst/bin/g++ prog.cpp System type: 64-bit Ubuntu Linux Compiler version: $ /home/cas43/new-gcc/inst/bin/g++ -v 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)=20 OUTPUT: prog.cpp: In member function =E2=80=98void B::f()=E2=80=99: prog.cpp:2:53: error: there are no arguments to =E2=80=98u=E2=80=99 that de= pend on a template parameter, so a declaration of =E2=80=98u=E2=80=99 must be available [-fper= missive] prog.cpp:2:53: 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 instantiation of =E2=80=98void B::f() [with T =3D int]=E2= =80=99: prog.cpp:3:16: required from here prog.cpp:2:50: error: =E2=80=98u=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:50: internal compiler error: tree check: expected tree that cont= ains =E2=80=98decl minimal=E2=80=99 structure, have =E2=80=98indirect_ref=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.