This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/69658] [6 Regression] Bogus "C99 designator outside aggregate initializer" error


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]