Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/nsdmi-template4.C

raw
1 // PR c++/57887
2 // { dg-do compile { target c++11 } }
3
4 struct B
5 {
6 template<int N>
7 struct A
8 {
9 int X = N;
10 };
11 };
12
13 template<int M>
14 struct C
15 {
16 int Y = M;
17
18 template<int N>
19 struct A
20 {
21 int X = N;
22 int Y = M;
23 };
24 };