[Bug c++/90590] enumeration value not handled in switch warning for std::ios_base::seek_dir

mbelivea at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Aug 1 18:04:00 GMT 2019


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

--- Comment #8 from Matthew Beliveau <mbelivea at gcc dot gnu.org> ---
Author: mbelivea
Date: Thu Aug  1 18:04:23 2019
New Revision: 273980

URL: https://gcc.gnu.org/viewcvs?rev=273980&root=gcc&view=rev
Log:
PR c++/90590

        * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
        with reserved names that are in a system header.

        * c-c++-common/pr90590-1.c: New test.
        * c-c++-common/pr90590-1.h: New test.
        * c-c++-common/pr90590-2.c: New test.
        * c-c++-common/pr90590-2.h: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/pr90590-1.c
    trunk/gcc/testsuite/c-c++-common/pr90590-1.h
    trunk/gcc/testsuite/c-c++-common/pr90590-2.c
    trunk/gcc/testsuite/c-c++-common/pr90590-2.h
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-family/c-warn.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list