This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/911: ice in maybe_process_partial_specialization (error mark)
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/911: ice in maybe_process_partial_specialization (error mark)
- From: schmid at snake dot iap dot physik dot tu-darmstadt dot de
- Date: Tue, 28 Nov 2000 01:01:06 +0100
>Number: 911
>Category: c++
>Synopsis: ice in maybe_process_partial_specialization (error mark)
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Mon Nov 27 16:06:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: Peter Schmid
>Release: 2.97 20001120 (experimental)
>Organization:
TU Darmstadt
>Environment:
System: Linux kiste 2.4.0-test10 #20 Thu Nov 2 03:02:57 CET 2000 i686 unknown
Architecture: i686
GNU assembler 001002
GLIBC 2.1.3
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.97/specs
Configured with: ../gcc-20001120/configure -enable-shared --disable-nls --enable-threads=posix --enable-long-long --enable-libstdcxx-v3
gcc version 2.97 20001120 (experimental)
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-20001120/configure -enable-shared --disable-nls --enable-threads=posix --enable-long-long --enable-libstdcxx-v3
>Description:
The following very simple code crashes the compiler with an internal
compiler error. This code is buggy, since it is an invalid template
declaration.
>How-To-Repeat:
source file: tadt2.C
template<class T>
class A<T>;
--
Compiling the programm:
g++ -c -v -Q -W -Wall tadt2.C -save-temps
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.97/specs
Configured with: ../gcc-20001120/configure -enable-shared --disable-nls --enable-threads=posix --enable-long-long --enable-libstdcxx-v3
gcc version 2.97 20001120 (experimental)
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.97/cpp0 -lang-c++ -v -D__GNUC__=2 -D__GNUC_MINOR__=97 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__STDC_HOSTED__=1 -W -Wall -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ tadt2.C tadt2.ii
GNU CPP version 2.97 20001120 (experimental) (cpplib) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include/g++-v3
/usr/local/include
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.97/include
/usr/local/i686-pc-linux-gnu/include
/usr/include
End of search list.
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.97/cc1plus -fpreprocessed tadt2.ii -lang-c++ -D__GNUG__=2 -D__GXX_ABI_VERSION=100 -dumpbase tadt2.C -W -Wall -version -fnew-abi -o tadt2.s
GNU C++ version 2.97 20001120 (experimental) (i686-pc-linux-gnu) compiled by GNU C version 2.97 20001120 (experimental).
options passed: -fpreprocessed -lang-c++ -D__GNUG__=2
-D__GXX_ABI_VERSION=100 -W -Wall -fnew-abi
options enabled: -fpeephole -ffunction-cse -fkeep-static-consts
-fpcc-struct-return -fsched-interblock -fsched-spec -fbranch-count-reg
-fexceptions -fnew-exceptions -fcommon -fgnu-linker -fargument-alias
-fident -fmath-errno -m80387 -mhard-float -mno-soft-float -mieee-fp
-mfp-ret-in-387
tadt2.C:2: `A' is not a template
tadt2.C:2: Tree check: expected class 't', have 'x' (error_mark)
tadt2.C:2: Internal compiler error in maybe_process_partial_specialization, at
cp/pt.c:695
confused by earlier errors, bailing out
__
preprocessor source: tadt2.ii
# 1 "tadt2.C"
template<class T>
class A<T>;
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: