https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90590
Bug ID: 90590 Summary: enumeration value not handled in switch warning for std::ios_base::seek_dir Product: gcc Version: 9.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: alan at birtles dot org.uk Target Milestone: --- GCC (and clang bug 67996) raises a warning when declaring a switch statement which uses std::ios_base::seek_dir. The following: #include <iostream> int main() { std::ios_base::seekdir dir = std::ios_base::end; switch ( dir ) { case std::ios_base::end: case std::ios_base::beg: case std::ios_base::cur: break; } } produces: test.cpp: In function 'int main()': test.cpp:6:12: warning: enumeration value '_S_ios_seekdir_end' not handled in switch [-Wswitch]