public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51689] New: GCC apparently is inconsistent with warning about invalid brace-elision use
@ 2011-12-27 22:18 schaub.johannes at googlemail dot com
  2012-01-02 18:02 ` [Bug c++/51689] " paolo.carlini at oracle dot com
  2015-06-17 15:49 ` paolo.carlini at oracle dot com
  0 siblings, 2 replies; 3+ messages in thread
From: schaub.johannes at googlemail dot com @ 2011-12-27 22:18 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/51689] GCC apparently is inconsistent with warning about invalid brace-elision use
  2011-12-27 22:18 [Bug c++/51689] New: GCC apparently is inconsistent with warning about invalid brace-elision use schaub.johannes at googlemail dot com
@ 2012-01-02 18:02 ` paolo.carlini at oracle dot com
  2015-06-17 15:49 ` paolo.carlini at oracle dot com
  1 sibling, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-01-02 18:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-01-02 18:01:58 UTC ---
In this area we have also PR25137.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/51689] GCC apparently is inconsistent with warning about invalid brace-elision use
  2011-12-27 22:18 [Bug c++/51689] New: GCC apparently is inconsistent with warning about invalid brace-elision use schaub.johannes at googlemail dot com
  2012-01-02 18:02 ` [Bug c++/51689] " paolo.carlini at oracle dot com
@ 2015-06-17 15:49 ` paolo.carlini at oracle dot com
  1 sibling, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-06-17 15:49 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
      Known to work|                            |4.9.0, 5.0
         Resolution|---                         |WORKSFORME

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
I think nothing is left to fix here: we reject the former and warn with
-Wmissing-braces for the latter (modulo the spurious open curly brace).
Likewise current clang and edg.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-06-17 15:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-27 22:18 [Bug c++/51689] New: GCC apparently is inconsistent with warning about invalid brace-elision use schaub.johannes at googlemail dot com
2012-01-02 18:02 ` [Bug c++/51689] " paolo.carlini at oracle dot com
2015-06-17 15:49 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).