Commit 28577b86 by Jason Merrill Committed by Jason Merrill

* cp-gimplify.c (cp_fold): Don't fold constexpr calls if -fno-inline.

From-SVN: r233671
parent 4501d9ad
2016-02-24 Jason Merrill <jason@redhat.com>
* cp-gimplify.c (cp_fold): Don't fold constexpr calls if -fno-inline.
2016-02-19 Jason Merrill <jason@redhat.com> 2016-02-19 Jason Merrill <jason@redhat.com>
PR c++/69743 PR c++/69743
......
...@@ -2154,7 +2154,8 @@ cp_fold (tree x) ...@@ -2154,7 +2154,8 @@ cp_fold (tree x)
TODO: TODO:
Do constexpr expansion of expressions where the call itself is not Do constexpr expansion of expressions where the call itself is not
constant, but the call followed by an INDIRECT_REF is. */ constant, but the call followed by an INDIRECT_REF is. */
if (callee && DECL_DECLARED_CONSTEXPR_P (callee)) if (callee && DECL_DECLARED_CONSTEXPR_P (callee)
&& !flag_no_inline)
r = maybe_constant_value (x); r = maybe_constant_value (x);
optimize = sv; optimize = sv;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment