https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90805

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
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

Reply via email to