Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-union7a.C
blobb676e7d17488050f1356d32e13517617fc03aff6
1 // PR c++/105491
2 // { dg-do compile { target c++11 } }
4 struct V {
5   int m = 0;
6 };
7 struct S : V {
8   constexpr S(int) : b() { }
9   bool b;
11 union W {
12   constexpr W() : s(0) { }
13   S s;
15 constexpr W w;