]>
Commit | Line | Data |
---|---|---|
cac67c08 JJ |
1 | // PR c++/34619 |
2 | // { dg-do compile } | |
3 | ||
4 | template <typename> struct A | |
5 | { | |
6 | typedef int X; | |
7 | static const int N = 1; | |
8 | }; | |
9 | ||
10 | template <typename T> struct B | |
11 | { | |
12 | typedef typename A <int [A <T>::N]>::X Y; | |
13 | template <typename U> B (Y, U) {} | |
14 | }; | |
15 | ||
16 | int main () | |
17 | { | |
18 | } | |
19 | ||
20 | B <int>b (0, 0); |