https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78244
--- Comment #9 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Wed Jan 16 15:58:34 2019 New Revision: 267976 URL: https://gcc.gnu.org/viewcvs?rev=267976&root=gcc&view=rev Log: PR c++/78244 - narrowing conversion in template not detected. * call.c (perform_implicit_conversion_flags): Set IMPLICIT_CONV_EXPR_BRACED_INIT. * cp-tree.h (IMPLICIT_CONV_EXPR_BRACED_INIT): New. * pt.c (tsubst_copy_and_build): Use it. * g++.dg/cpp0x/Wnarrowing13.C: New test. * g++.dg/cpp0x/Wnarrowing14.C: New test. Added: trunk/gcc/testsuite/g++.dg/cpp0x/Wnarrowing13.C trunk/gcc/testsuite/g++.dg/cpp0x/Wnarrowing14.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/call.c trunk/gcc/cp/cp-tree.h trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog