On 08/08/2014 04:52 PM, Paolo Carlini wrote:
+      else if (!TREE_CONSTANT (init))
+       {
+         if (complain & tf_warning_or_error)
+           pedwarn (EXPR_LOC_OR_LOC (init, input_location), OPT_Wnarrowing,
+                    "narrowing conversion of %qE from %qT to %qT inside { }",
+                    init, ftype, type);
+         ok = true;
+       }

We should only set ok to true if (complain & tf_warning_or_error); in SFINAE context we need to be strict.

Jason

Reply via email to