c++/8164: internal error: segmentation fault
Volker Reichelt
reichelt@igpm.rwth-aachen.de
Tue Nov 5 09:13:00 GMT 2002
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
More information about the Gcc-bugs
mailing list