This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[C++0x]: non-public defaulted copy c-tor


After upgrade to trunk-20091124:

    class C {

    protected:

        C(const C&) = default;
    };

main.cpp:1506:23: error: 'C::C(const C&)' declared with non-public access cannot
 be defaulted in the class body

But I can't find anything about it in the N3000 draft.
Should I file a GCC bug report or adjust my code?

Best regards
Piotr Wyderski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]