commit e1851b1d2be83cf9ee13a8a21faac3dcac52d746
Author: Jason Merrill <jason@redhat.com>
Date: Wed Nov 26 12:00:20 2014 -0500
* constexpr.c (cxx_eval_call_expression): Don't talk about
flowing off the end if we're already non-constant.
@@ -1344,7 +1344,7 @@ cxx_eval_call_expression (const constexpr_ctx *ctx, tree t,
else
{
result = *ctx->values->get (slot ? slot : res);
- if (result == NULL_TREE)
+ if (result == NULL_TREE && !*non_constant_p)
{
if (!ctx->quiet)
error ("constexpr call flows off the end "