Current GCC accepts the following

struct A {
   A(int) { }
};

int main()
{
   A a = { 6 };
}

which is invalid.
This is a regression from GCC-3.3.x


-- 
           Summary: initializer-list accepted for object of non-POD type
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gdr at gcc dot gnu dot org
  GCC host triplet: platform independent


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

Reply via email to