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++/51689] New: GCC apparently is inconsistent with warning about invalid brace-elision use


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

             Bug #: 51689
           Summary: GCC apparently is inconsistent with warning about
                    invalid brace-elision use
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: schaub.johannes@googlemail.com


GCC gives a warning about

    std::array<int, 2>{1, 2}

But it gives an error about

    struct A {
      A():a{1, 2} { }
      std::{array<int, 2> a;
    };

I would expect consistent handling of the two cases.


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