This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]