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++/71577] [6/7/8 regression] ICE on invalid C++11 code (with extra struct initializer): in digest_init_r, at cp/typeck2.c:1117


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71577

--- Comment #8 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Fri May  5 09:02:22 2017
New Revision: 247630

URL: https://gcc.gnu.org/viewcvs?rev=247630&root=gcc&view=rev
Log:
/cp
2017-05-05  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/71577
        * decl.c (reshape_init): Unconditionally return error_mark_node
        upon error about too many initializers.

/testsuite
2017-05-05  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/71577
        * g++.dg/cpp0x/pr71577.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/pr71577.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.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]