This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25137] Warning "missing braces around initializer" causing problems with tr1::array
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 26 May 2012 21:21:51 +0000
- Subject: [Bug c++/25137] Warning "missing braces around initializer" causing problems with tr1::array
- Auto-submitted: auto-generated
- References: <bug-25137-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25137
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
--- Comment #17 from Jason Merrill <jason at gcc dot gnu.org> 2012-05-26 21:21:51 UTC ---
Hmm. I see the argument, but it seems to me that the purpose of
-Wmissing-braces is precisely to warn about this sort of thing. Perhaps it
just shouldn't be part of -Wall in C++ mode, particularly in C++11 since
initializer lists are a lot more flexible now.