☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
using55.C
☽
☼
gcc/testsuite/g++.dg/lookup/using55.C
code
plain
raw
1
// PR c++/65721
2
3
template<typename T>
4
struct A {
5
typedef T D;
6
};
7
8
template<typename X>
9
class B : public A<X> {
10
using typename B::D; // { dg-error "not a base" }
11
public:
12
D echo(D x) { // { dg-error "D" }
13
return x;
14
}
15
};
16
17
int main() {
18
B<int> b;
19
}