commit bf89c79569525294101eb024502fcc03011b16d2
Author: Jason Merrill <jason@redhat.com>
Date: Mon Feb 22 13:32:50 2016 -0500
* cp-gimplify.c (cp_fold): Don't fold constexpr calls if -fno-inline.
@@ -2154,7 +2154,8 @@ cp_fold (tree x)
TODO:
Do constexpr expansion of expressions where the call itself is not
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);
optimize = sv;