New test case.
From-SVN: r28672
This commit is contained in:
parent
155d38c0e7
commit
0486d4a1b3
15
gcc/testsuite/g++.old-deja/g++.pt/typename23.C
Normal file
15
gcc/testsuite/g++.old-deja/g++.pt/typename23.C
Normal file
@ -0,0 +1,15 @@
|
||||
// Build don't link:
|
||||
template<class T>
|
||||
void value_type(T){}
|
||||
|
||||
template <class T>
|
||||
struct B{
|
||||
typedef T value_type;
|
||||
};
|
||||
|
||||
template<class>class Vector{};
|
||||
|
||||
template<class T>
|
||||
struct D:B<T>{
|
||||
Vector<value_type> r; // ERROR - value_type is not a type
|
||||
};
|
Loading…
Reference in New Issue
Block a user