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: "baffo32 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 27 Aug 2011 08:53:59 +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
baffo32 at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |baffo32 at gmail dot com
--- Comment #15 from baffo32 at gmail dot com 2011-08-27 08:53:59 UTC ---
(In reply to comment #13)
> GCC allows it too, otherwise it would be an error not a warning.
I believe GCC fails for multi-dimensional arrays?
array<array<int,2>,2> a{ {1,2},{3,4} }; // won't compile without another pair
of {}