This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r275421 - in /trunk/gcc: cp/ChangeLog cp/decl.c...
- From: mpolacek at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 05 Sep 2019 15:37:53 -0000
- Subject: r275421 - in /trunk/gcc: cp/ChangeLog cp/decl.c...
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