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 {
AA7   constexpr A() : T() { }
8 };
9 
10 template <typename T>
11 struct B {
12   A<T> b;
BB13   constexpr B() { }
14 };
15 
16 struct C { struct {} s; };
17 constexpr B<C> b{};
18 constexpr C c = b.b;
19