This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28316] New: ICE in in instantiate_decl, at cp/pt.c:11645
- From: "debian-gcc at lists dot debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jul 2006 17:29:34 -0000
- Subject: [Bug c++/28316] New: ICE in in instantiate_decl, at cp/pt.c:11645
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
[forwarded from http://bugs.debian.org/355909]
Matthias
rechecked with 4.1.2 20060630
template <typename T>
struct foo
{
static const int i;
};
template <typename T>
const int foo<float>::i = 42;
int
main ()
{
return foo<float>::i;
}
$ g++ foo.cc
foo.cc: In function 'int main()':
foo.cc:13: instantiated from 'const int foo<float>::i'
foo.cc:13: instantiated from here
foo.cc:13: internal compiler error: in instantiate_decl, at cp/pt.c:11645
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: ICE in in instantiate_decl, at cp/pt.c:11645
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian-gcc at lists dot debian dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28316