This is the mail archive of the gcc-patches@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]

Re: [PATCH] Fix -Wmissing-braces (PR c++/20175)


Jakub Jelinek wrote:
Hi!

The PR c++/19755 fix introduced this regression where we now warn about
missing braces even if a char (resp. wchar_t) array is initialized
by a string (resp. wide string) literal, while the standard in
[dcl.init.string]/1 for this states that the (wide) string literal is
only optionally enclosed in braces.
This worked properly in 3.2 (and I assume 3.3).

Ok for trunk/3.4?

Yes, and thanks for fixing this oversight on my part.


--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


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