This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/4526: ICE in g++ 3.0.1 when using typeof() as template parameter
- From: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: gcc-gnats at gcc dot gnu dot org, grey dot havens at earthling dot net, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Wed, 4 Dec 2002 14:38:36 +0100
- Subject: Re: c++/4526: ICE in g++ 3.0.1 when using typeof() as template parameter
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