+2016-05-24 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/69872
+ * typeck2.c (check_narrowing): Check pedwarn return value.
+
2016-05-24 Jakub Jelinek <jakub@redhat.com>
PR c++/71257
{
if (complain & tf_warning_or_error)
{
- if (!almost_ok || pedantic)
- pedwarn (loc, OPT_Wnarrowing, "narrowing conversion of %qE "
- "from %qT to %qT inside { }", init, ftype, type);
- if (pedantic && almost_ok)
+ if ((!almost_ok || pedantic)
+ && pedwarn (loc, OPT_Wnarrowing,
+ "narrowing conversion of %qE "
+ "from %qT to %qT inside { }",
+ init, ftype, type)
+ && almost_ok)
inform (loc, " the expression has a constant value but is not "
"a C++ constant-expression");
ok = true;