Debian Codegraph @

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

raw
1 // PR c++/58188
2 // { dg-do compile { target c++11 } }
3
4 struct B {};
5 struct A
6 {
7 A( B );
8 };
9
10 struct Bar
11 {
12 template< unsigned v >
13 struct Foo
14 {
15 A z = B();
16 unsigned value;
17 Foo(): value( v ) {}
18 };
19
20 struct Baz
21 {
22 Foo< 8 > foo1;
23 Foo< 1 > foo3;
24 };
25 };
26
27 Bar::Baz baz;