[Bug c/53119] -Wmissing-braces wrongly warns about universal zero initializer {0}

bugdal at aerifal dot cx gcc-bugzilla@gcc.gnu.org
Fri Jun 6 00:57:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119

--- Comment #14 from Rich Felker <bugdal at aerifal dot cx> ---
In C++, the correct zero initializer is {}, not {0}. I'm not an expert in C++
but I think {0} in C++ might even be a constraint violation unless the brace
level happens to match.



More information about the Gcc-bugs mailing list