Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/pr89403.C

raw
1 // PR c++/89403
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Os -fsyntax-only" }
4
5 template <typename T>
6 struct A : T {
7 constexpr A() : T() { }
8 };
9
10 template <typename T>
11 struct B {
12 A<T> b;
13 constexpr B() { }
14 };
15
16 struct C { struct {} s; };
17 constexpr B<C> b{};
18 constexpr C c = b.b;