This is the mail archive of the gcc-bugs@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]

[Bug c++/60417] New: [4.9 regression] [DR 1518] Bogus error on C++03 aggregate initialization


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

            Bug ID: 60417
           Summary: [4.9 regression] [DR 1518] Bogus error on C++03
                    aggregate initialization
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jason at gcc dot gnu.org
        Depends on: 54835

This testcase is valid C++98, but we've started to reject it since the patch
for 54835.

struct A { explicit A(int = 0); };
struct B { A a; };

int main()
{
  B b = {};
}


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