]>
Commit | Line | Data |
---|---|---|
688d56bc AO |
1 | // Build don't link: |
2 | ||
3 | // Based on bug report by Miniussi <miniussi@ilog.fr> | |
4 | ||
5 | class t {}; | |
6 | ||
7 | template <class T> struct A { typedef T t; typedef T u; }; | |
8 | ||
9 | template <class T> struct B : public A<T> { | |
10 | // according to [temp.dep.type], `t' and `u' cannot be dependent types, | |
11 | // and so there's no reason to delay lookup to specialization time. | |
12 | void f(t p); // this is ::t [temp.dep]/3 | |
f070035e JM |
13 | void f(typename A<T>::t p); // gets bogus error - redefinition |
14 | void g(u p); // ERROR - unknown type name | |
688d56bc | 15 | }; |