[Bug c++/88572] error: braces around scalar initializer - should be a warning
wjwray at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Feb 20 17:18:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88572
Will Wray <wjwray at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #45683|0 |1
is obsolete| |
--- Comment #16 from Will Wray <wjwray at gmail dot com> ---
Created attachment 45778
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45778&action=edit
Updated patch addressing review comments
(Updated Change Log entry for decl.c)
Log:
PR c++/88572
* decl.c (reshape_init_r): Remove condition that was incorrectly
rejecting braces around scalar initializer within aggregate init.
Produce no warning. Add a conditional block rejecting braced-init
of scalar variable, including empty-brace value-initialization
that was being incorrectly accepted.
More information about the Gcc-bugs
mailing list