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++/79535] [6/7 Regression] ICE in verify_ctor_sanity, at cp/constexpr.c:2636


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

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Feb 21 20:23:09 2017
New Revision: 245641

URL: https://gcc.gnu.org/viewcvs?rev=245641&root=gcc&view=rev
Log:
        PR c++/79535
        * cp-tree.h (maybe_reject_flexarray_init): Declare.
        * init.c (maybe_reject_flexarray_init): No longer static.
        Add check for current_function_decl.
        * parser.c (cp_parser_late_parse_one_default_arg): Reject
        a default mem-initializer for a flexible array.

        * g++.dg/ext/flexary23.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/ext/flexary23.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/init.c
    trunk/gcc/cp/parser.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]