http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56429



             Bug #: 56429

           Summary: [C++11] Explicitly defaulted private constructor is

                    not private

    Classification: Unclassified

           Product: gcc

           Version: 4.8.0

            Status: UNCONFIRMED

          Keywords: accepts-invalid

          Severity: normal

          Priority: P3

         Component: c++

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: r...@gcc.gnu.org





class A

{

    A() = default;

};

struct B : A { };



B b;



This should be rejected, but 4.6, 4.7 and 4.8 accept it.



(4.4 also accepts it, while 4.5 rejects it for a different reason.)

Reply via email to