From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19065 invoked by alias); 31 Dec 2009 06:06:44 -0000 Received: (qmail 19025 invoked by uid 48); 31 Dec 2009 06:06:32 -0000 Date: Thu, 31 Dec 2009 06:06:00 -0000 Subject: [Bug c++/42563] New: internal compiler error in is_ancestor, at cp/name-lookup.c X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "thomasd57 at yahoo dot com" 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-12/txt/msg02866.txt.bz2 Here is the testcase: template struct A { A() {} }; struct B { B() {} A foo(); }; template A T::foo() { return A(); } template class A; And the command line: > g++ -c test.cc -Wall test.cc:13: internal compiler error: in is_ancestor, at cp/name-lookup.c:2236 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. > g++ -v Using built-in specs. Target: x86_64-suse-linux Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.1.2 --enable-ssp --disable-libssp --disable-libgcj --with-slibdir=/lib64 --with-system-zlib --enable-shared --enable-__cxa_atexit --enable-libstdcxx-allocator=new --program-suffix= --enable-version-specific-runtime-libs --without-system-libunwind --with-cpu=generic --host=x86_64-suse-linux Thread model: posix gcc version 4.1.2 20070115 (prerelease) (SUSE Linux) > cat /etc/SuSE-release SUSE Linux Enterprise Server 10 (x86_64) VERSION = 10 PATCHLEVEL = 1 -- Summary: internal compiler error in is_ancestor, at cp/name- lookup.c Product: gcc Version: 4.1.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: thomasd57 at yahoo dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42563