]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.old-deja/g++.pt/lookup6.C
pt.c (check_nontype_parm): New function.
[gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / lookup6.C
CommitLineData
688d56bc
AO
1// Build don't link:
2
3// Based on bug report by Miniussi <miniussi@ilog.fr>
4
5class t {};
6
7template <class T> struct A { typedef T t; typedef T u; };
8
9template <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};
This page took 0.683762 seconds and 5 git commands to generate.