From 7467eea568f18846239569b45e62aa09068950c5 Mon Sep 17 00:00:00 2001 From: jason Date: Mon, 17 Nov 2014 18:16:19 +0000 Subject: [PATCH] * constexpr.c (use_new_call): Always use new call handling. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217664 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/ChangeLog | 2 ++ gcc/cp/constexpr.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ae347d8b7301..e6fc326d7549 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,7 @@ 2014-11-17 Jason Merrill + * constexpr.c (use_new_call): Always use new call handling. + C++14 constexpr support (minus loops and multiple returns) * constexpr.c (use_new_call): New macro. (build_data_member_initialization): Ignore non-mem-inits. diff --git a/gcc/cp/constexpr.c b/gcc/cp/constexpr.c index 57d0c465d5f2..8881271de242 100644 --- a/gcc/cp/constexpr.c +++ b/gcc/cp/constexpr.c @@ -1021,8 +1021,8 @@ adjust_temp_type (tree type, tree temp) } /* True if we want to use the new handling of constexpr calls based on - DECL_SAVED_TREE. Currently only active for C++14 mode. */ -#define use_new_call (cxx_dialect >= cxx14) + DECL_SAVED_TREE. */ +#define use_new_call true /* Subroutine of cxx_eval_call_expression. We are processing a call expression (either CALL_EXPR or -- 2.47.3