This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16623] New: [3.5] g++ ICE in tsubst_decl:6081
- From: "gcc-bugzilla at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jul 2004 01:24:45 -0000
- Subject: [Bug c++/16623] New: [3.5] g++ ICE in tsubst_decl:6081
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
g++ mainline crashes on the example below:
$ g++ -c x.cc
x.cc: In instantiation of `C<0>':
x.cc:13: instantiated from here
x.cc:3: internal compiler error: in tsubst_decl, at cp/pt.c:6081
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
$
Environment:
System: Linux karma 2.6.7 #18 Wed Jul 14 03:27:01 EDT 2004 i686 i686 i386 GNU/Linux
Architecture: i686
<machine, os, target, libraries (multiple lines)>
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: /home/sss/gcc/gcc/configure --prefix=/usr/local/gcc --enable-threads=posix --enable-long-long --enable-languages=c,c++,f95
How-To-Repeat:
Compile the following:
----------------------------------------
template <int N>
struct C
{
C& operator= (int);
};
template <int N>
C<N>& C<N>::operator= (int)
{
return *this;
}
C<0> a;
----------------------------------------
------- Additional Comments From snyder at fnal dot gov 2004-07-19 01:24 -------
Fix:
<how to correct or work around the problem, if known (multiple lines)>
--
Summary: [3.5] g++ ICE in tsubst_decl:6081
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: snyder at fnal dot gov
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16623