diff options
Diffstat (limited to 'gcc/cp/expr.c')
-rw-r--r-- | gcc/cp/expr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/expr.c b/gcc/cp/expr.c index cfc1c7b..04e4418 100644 --- a/gcc/cp/expr.c +++ b/gcc/cp/expr.c @@ -397,6 +397,8 @@ fold_for_warn (tree x) else return f; } + else if (cxx_dialect >= cxx11) + x = maybe_constant_value (x, NULL_TREE, false, true); return c_fully_fold (x, /*for_init*/false, /*maybe_constp*/NULL); } |