https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70353
--- Comment #17 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Tue Mar 29 18:40:02 2016 New Revision: 234530 URL: https://gcc.gnu.org/viewcvs?rev=234530&root=gcc&view=rev Log: PR c++/70353 gcc/ * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null. gcc/cp/ * decl.c (make_rtl_for_nonlocal_decl): Don't defer local statics in constexpr functions. Added: trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-__func__2.C Modified: trunk/gcc/ChangeLog trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl.c trunk/gcc/tree-inline.c