PR c++/64994
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-ctor18.C
blobfa4ff7cc75ef4a39e18d507b05c18d89167a51bd
1 // PR c++/64994
2 // { dg-do compile { target c++11 } }
4 class TimeStamp {
5 public:
6   constexpr TimeStamp() : mValue() {}
7   int mValue;
8 };
10 class A {
11   class B;
12   A(bool);
14 class C {
15   TimeStamp mFadeBeginTime;
17 class A::B {
18 public:
19   B(int) {}
20   TimeStamp mPrevEventTime[1];
23 A::A(bool) {
24   new C;
25   B(0);