1 2 3 4 5 6 7 8 9 10
// PR c++/46930 // { dg-options -std=c++0x } struct S { static constexpr int size; // { dg-error "must have an initializer" } // { dg-error "previous declaration" "" { target *-*-* } 5 } }; const int limit = 2 * S::size; constexpr int S::size = 256; // { dg-error "" }