[Bug c++/53361] Could not convert ‘{0?=, 0,=?UTF-8?Q? 0}’ from ‘?=<brace-enclosed initializer list>=?UTF-8?Q?’ to ‘std?=::array<unsigned int, 3ul>=?UTF-8?Q?’

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Mon May 21 23:44:00 GMT 2012


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 ;)



More information about the Gcc-bugs mailing list