blob: 0a3fcb6562337bf30366ebcf3d07f7cfa4cdc00b [file] [log] [blame]
// 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 "" }