This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/69658] [6 Regression] Bogus "C99 designator outside aggregate initializer" error
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 15 Feb 2016 22:05:44 +0000
- Subject: [Bug c++/69658] [6 Regression] Bogus "C99 designator outside aggregate initializer" error
- Auto-submitted: auto-generated
- References: <bug-69658-4 at http dot gcc dot gnu dot org/bugzilla/>
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