[Bug c++/57594] New: [C++11] in-class static initializer can use deleted copy constructor
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jun 12 10:37:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57594
Bug ID: 57594
Summary: [C++11] in-class static initializer can use deleted
copy constructor
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: redi at gcc dot gnu.org
This should be rejected:
struct Private
{
Private(const Private&) = delete;
Private() = default;
};
struct A
{
static constexpr Private p = Private();
};
More information about the Gcc-bugs
mailing list