[Bug c++/69658] [6 Regression] Bogus "C99 designator outside aggregate initializer" error
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Feb 15 22:05:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69658
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Feb 15 22:05:12 2016
New Revision: 233435
URL: https://gcc.gnu.org/viewcvs?rev=233435&root=gcc&view=rev
Log:
PR c++/69658
* init.c (expand_default_init): Only call reshape_init
in the direct-initialization from an initializer list case.
* g++.dg/init/pr69658.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/init/pr69658.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/init.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list