[Bug c++/70353] [5 regression] ICE on __PRETTY_FUNCTION__ in a constexpr function
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed May 18 15:59:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70353
--- Comment #22 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed May 18 15:59:00 2016
New Revision: 236408
URL: https://gcc.gnu.org/viewcvs?rev=236408&root=gcc&view=rev
Log:
PR c++/70353 - __func__ and constexpr
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:
branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-__func__2.C
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/cp/ChangeLog
branches/gcc-5-branch/gcc/cp/decl.c
branches/gcc-5-branch/gcc/tree-inline.c
More information about the Gcc-bugs
mailing list