re PR c++/90590 (enumeration value not handled in switch warning for std::ios_base...
authorMatthew Beliveau <mbelivea@redhat.com>
Thu, 1 Aug 2019 18:04:23 +0000 (18:04 +0000)
committerMatthew Beliveau <mbelivea@gcc.gnu.org>
Thu, 1 Aug 2019 18:04:23 +0000 (18:04 +0000)
commitce529ffca708a635f434a99bf082dec2a1ba0446
treeb19701c7330848dda616d6fafc0d5fdaff5f5fd8
parent2c726f944444e62eae732dcc704479096796187b
re PR c++/90590 (enumeration value not handled in switch warning for std::ios_base::seek_dir)

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.

From-SVN: r273980
gcc/ChangeLog
gcc/c-family/c-warn.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr90590-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/pr90590-1.h [new file with mode: 0644]
gcc/testsuite/c-c++-common/pr90590-2.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/pr90590-2.h [new file with mode: 0644]