This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/7115: Internal compiler error on template stuff
- From: Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: gcc-gnats at gcc dot gnu dot org, strieder at informatik dot uni-kl dot de, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Wed, 26 Jun 2002 13:11:50 +0200
- Subject: Re: c++/7115: Internal compiler error on template stuff
Hi,
the bug (at least one bug - maybe there are others?) can be exposed with
the following code snippet:
----------------------------------snip here----------------------------
template <unsigned int> class A {};
template <typename T> A<sizeof(T*)> foo();
void bar()
{
foo<void>();
}
----------------------------------snip here----------------------------
Compiling this with "g++ -c" I get
bug.cpp: In function `void bar()':
bug.cpp:7: internal error: Segmentation fault
Please submit a full bug report, [etc.]
This happens with gcc 3.0.x, 3.1, 3.1.1 as of 20020624 and the main
trunk (tested on i686-pc-linux-gnu and mips-sgi-irix6.5).
It's a regression from 2.95.x and is probably related to PR 7112
(which is already marked "high priority").
Greetings,
Volker Reichelt
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7115
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7112