This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/8164: internal error: segmentation fault
- From: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: schnoerr at mailzone dot com, gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Tue, 5 Nov 2002 19:05:27 +0100
- Subject: Re: c++/8164: internal error: segmentation fault
Hi,
the problem can be reduced to the following code snippet (which looks
legal to me):
-------------------------------snip here-------------------------
template <bool> struct A {};
template <bool> struct B
{
void foo()
{
const int i=0;
typedef A< i<=1 > C;
typedef A< i<=2 > C;
}
};
-------------------------------snip here-------------------------
gcc 2.95.x rejects the code with an error message.
gcc 3.0.x, the 3.2 branch and mainline produce an ICE.
Greetings,
Volker
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8164