PR c++/88572 - wrong handling of braces on scalar init.
authorWill Wray <wjwray@gmail.com>
Wed, 20 Feb 2019 18:50:32 +0000 (13:50 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 20 Feb 2019 18:50:32 +0000 (13:50 -0500)
commitcb13308543771f56bbc932933b9ec7bbb95d37ac
tree99ccbbc756b3caee0a6e8b12607a4867d33e25f0
parent990525f659db023bbcaf8d313916e4533843c664
PR c++/88572 - wrong handling of braces on scalar init.

* decl.c (reshape_init_r): Allow braces around scalar initializer
within aggregate init.  Reject double braced-init of scalar
variable.

From-SVN: r269045
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/g++.dg/cpp0x/initlist69.C
gcc/testsuite/g++.dg/cpp1z/direct-enum-init1.C
gcc/testsuite/g++.dg/init/brace1.C
gcc/testsuite/g++.dg/init/brace2.C
gcc/testsuite/g++.dg/init/union2.C
gcc/testsuite/g++.dg/warn/Wbraces2.C