re PR c++/70353 (ICE on __PRETTY_FUNCTION__ in a constexpr function)
authorJason Merrill <jason@gcc.gnu.org>
Tue, 29 Mar 2016 18:40:02 +0000 (14:40 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 29 Mar 2016 18:40:02 +0000 (14:40 -0400)
commite0bffbbb5936be8b6a35d868db4226ca1b2365fa
tree4b759a379b55a6ac060ab50cf266013f5d5b5c1d
parent3336c6e09385fa50daaa6b7b1bb68908f9a4298f
re PR c++/70353 (ICE on __PRETTY_FUNCTION__ in a constexpr function)

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.

From-SVN: r234530
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/g++.dg/cpp0x/constexpr-__func__2.C [new file with mode: 0644]
gcc/tree-inline.c