This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53361] Could not convert â{0, 0, 0}â from â<brace-enclosed initializer list>â to âstd::array<unsigned int, 3ul>â
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 21 May 2012 21:50:33 +0000
- Subject: [Bug c++/53361] Could not convert â{0, 0, 0}â from â<brace-enclosed initializer list>â to âstd::array<unsigned int, 3ul>â
- Auto-submitted: auto-generated
- References: <bug-53361-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53361
--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-05-21 21:50:33 UTC ---
Ah, I figured out what misled me: I added curly brackets to avoid
-Wmissing-braces warnings, ie, function({{0, 0, 0}}), and like this not only
the snippet doesn't trigger warnings, is actually accepted everywhere ;)