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();
};

Reply via email to