r273976 - in /trunk/gcc: cp/ChangeLog cp/decl.c...

mpolacek@gcc.gnu.org mpolacek@gcc.gnu.org
Thu Aug 1 16:27:00 GMT 2019


Author: mpolacek
Date: Thu Aug  1 16:27:04 2019
New Revision: 273976

URL: https://gcc.gnu.org/viewcvs?rev=273976&root=gcc&view=rev
Log:
	PR c++/90805 - detect narrowing in case values.
	* decl.c (case_conversion): Detect narrowing in case values.

	* c-c++-common/pr89888.c: Update expected dg-error.
	* g++.dg/cpp0x/Wnarrowing17.C: New test.
	* g++.dg/cpp0x/enum28.C: Update expected dg-error.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/Wnarrowing17.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/c-c++-common/pr89888.c
    trunk/gcc/testsuite/g++.dg/cpp0x/enum28.C



More information about the Gcc-cvs mailing list