From e6b021859d9ca64b8a9f1bcfda8b8f6319be7d71 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Mon, 17 Nov 2014 13:16:19 -0500 Subject: [PATCH] * constexpr.c (use_new_call): Always use new call handling. From-SVN: r217664 --- 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