blob: b4ef6df478c34ce742e4bfbaad776c82149a7c51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// PR c++/23211
// { dg-do compile }
template<class T>
struct foo
{
typedef int jtype;
struct bar
{
using typename foo<T>::jtype; // { dg-error "not a base type" }
using foo<T>::jtype; // { dg-error "not a base type" }
};
};
template <class T>
struct A : T
{
using T::i;
using typename T::type;
};
struct B1 {};
template <class T> struct B2 {};
template <class T>
struct C : B1, B2<T>
{
using B1::x; // { dg-error "no member" }
using B2<T>::y;
using typename B2<T>::type;
};
|