This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/53361] Could not convert â{0, 0, 0}â from â<brace-enclosed initializer list>â to âstd::array<unsigned int, 3ul>â


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]