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++/9368: [3.4 regression] parser: invalid use of template type parameter


Here's an even smaller testcase:

------------------------------snip here---------------------------
template <typename T> struct A
{
    T t;
    static void foo (A<T>&);
};

template <typename T> struct B
{
    A<T> a;
    void bar() { typedef A<T> C; C::foo(a); }
};
------------------------------snip here---------------------------

With this testcase I get the message:

PR9368.cpp: In instantiation of `A<T>':
PR9368.cpp:10:   instantiated from here
PR9368.cpp:3: error: `A<T>::t' has incomplete type
PR9368.cpp:3: error: invalid use of template type parameter

Regards,
Volker

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9368



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