re PR c++/65043 (Expected narrowing conversion during list initialization of bool from double)
PR c++/65043 * call.c (standard_conversion): Set check_narrowing. * typeck2.c (check_narrowing): Use CP_INTEGRAL_TYPE_P rather than comparing with INTEGER_TYPE. * g++.dg/concepts/pr67595.C: Add dg-warning. * g++.dg/cpp0x/Wnarrowing11.C: New test. * g++.dg/cpp0x/Wnarrowing12.C: New test. * g++.dg/cpp0x/rv-cast5.C: Add static_cast. From-SVN: r263739
Showing
gcc/testsuite/g++.dg/cpp0x/Wnarrowing11.C
0 → 100644
gcc/testsuite/g++.dg/cpp0x/Wnarrowing12.C
0 → 100644
Please
register
or
sign in
to comment