repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
hidden-class17.C
blob
3d5ccec39ccd1a1b98af5f1d780c08d3860c1349
1
// Origin PR c++/51641
2
// { dg-do compile }
3
4
struct A {
5
struct B { typedef int X; };
6
};
7
8
template<class B> struct C : A {
9
B::X q; // Ok: A::B.
10
struct U { typedef int X; };
11
template<class U>
12
struct D;
13
};
14
15
template<class B>
16
template<class U>
17
struct C<B>::D {
18
typename U::X r; // { dg-error "" }
19
};
20
21
C<int>::D<double> y;
22