This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r263739 - in /trunk/gcc: cp/ChangeLog cp/call.c...


Author: mpolacek
Date: Tue Aug 21 15:25:17 2018
New Revision: 263739

URL: https://gcc.gnu.org/viewcvs?rev=263739&root=gcc&view=rev
Log:
	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.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/Wnarrowing11.C
    trunk/gcc/testsuite/g++.dg/cpp0x/Wnarrowing12.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/typeck2.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/concepts/pr67595.C
    trunk/gcc/testsuite/g++.dg/cpp0x/rv-cast5.C


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]