re PR c++/68464 (ICE in valid constexpr function: ../../src/gcc/tree.c:11497)
authorJason Merrill <jason@redhat.com>
Mon, 7 Dec 2015 19:34:11 +0000 (14:34 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 7 Dec 2015 19:34:11 +0000 (14:34 -0500)
commit2fa586ad989926559871b01f9825e0adfe9fd186
tree644e845c48d787861c08b7d50cc20f0f8e02d0a3
parent7873d5fbc379c29055f5c67b3e33126bf0bdd214
re PR c++/68464 (ICE in valid constexpr function: ../../src/gcc/tree.c:11497)

PR c++/68464
* cp-gimplify.c (cp_fold): Don't assume X has TREE_TYPE.
(cp_genericize): Don't do cp_fold_r here.
(cp_fold_function): New.
* cp-tree.h: Declare it.
* decl.c (finish_function): Call it and the pre-genericize plugin
before NRV processing.

From-SVN: r231381
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/cp/cp-tree.h
gcc/cp/decl.c