diff options
Diffstat (limited to 'test/CXX/class/class.union/p2-0x.cpp')
-rw-r--r-- | test/CXX/class/class.union/p2-0x.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CXX/class/class.union/p2-0x.cpp b/test/CXX/class/class.union/p2-0x.cpp index b5c4109..5fb8a67 100644 --- a/test/CXX/class/class.union/p2-0x.cpp +++ b/test/CXX/class/class.union/p2-0x.cpp @@ -7,7 +7,7 @@ union U1 { static const int k2 = k1; static int k3 = k2; // expected-error {{non-const static data member must be initialized out of line}} static constexpr double k4 = k2; - static const double k5 = k4; // expected-warning {{GNU extension}} expected-note {{use 'constexpr'}} + static const double k5 = k4; // expected-error {{requires 'constexpr' specifier}} expected-note {{add 'constexpr'}} int n[k1 + 3]; }; |