This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r267976 - in /trunk/gcc: cp/ChangeLog cp/call.c...
- From: mpolacek at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 16 Jan 2019 15:58:34 -0000
- Subject: r267976 - in /trunk/gcc: cp/ChangeLog cp/call.c...
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