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

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu Sep  5 15:37:52 2019
New Revision: 275421

URL: https://gcc.gnu.org/viewcvs?rev=275421&root=gcc&view=rev
Log:
        PR c++/91644 - ICE with constinit in function template.
        * decl.c (start_decl): Call retrofit_lang_decl for constinit variables.
        * pt.c (tsubst_expr): Pass LOOKUP_CONSTINIT down to cp_finish_decl for
        constinit variables.

        * g++.dg/cpp2a/constinit13.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp2a/constinit13.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to