https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88572
--- Comment #17 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Wed Feb 20 18:50:32 2019 New Revision: 269045 URL: https://gcc.gnu.org/viewcvs?rev=269045&root=gcc&view=rev Log: 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. Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl.c trunk/gcc/testsuite/g++.dg/cpp0x/initlist69.C trunk/gcc/testsuite/g++.dg/cpp1z/direct-enum-init1.C trunk/gcc/testsuite/g++.dg/init/brace1.C trunk/gcc/testsuite/g++.dg/init/brace2.C trunk/gcc/testsuite/g++.dg/init/union2.C trunk/gcc/testsuite/g++.dg/warn/Wbraces2.C