c++/4526: ICE in g++ 3.0.1 when using typeof() as template parameter
Volker Reichelt
reichelt@igpm.rwth-aachen.de
Wed Dec 4 04:46:00 GMT 2002
The following reply was made to PR c++/4526; it has been noted by GNATS.
From: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
To: gcc-gnats@gcc.gnu.org, grey.havens@earthling.net, gcc-bugs@gcc.gnu.org,
nobody@gcc.gnu.org
Cc:
Subject: Re: c++/4526: ICE in g++ 3.0.1 when using typeof() as template parameter
Date: Wed, 4 Dec 2002 14:38:36 +0100
Hi,
here's a little cleaned-up testcase that should compile without error
(it actually compiles, if you replace "typeof(x)" by "X"):
-----------------------------------snip here-------------------------
struct X { typedef int type; };
X x;
template <typename T> struct A {
typedef typename T::type type;
};
template <typename T> struct B {
A<typeof(x)>::type y;
};
template class B<int>;
-----------------------------------snip here-------------------------
Regards,
Volker
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4526
More information about the Gcc-prs
mailing list