[Bug c++/87404] New: Implement -Wenum-compare and -Wenum-compare-switch
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Sep 24 10:32:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87404
Bug ID: 87404
Summary: Implement -Wenum-compare and -Wenum-compare-switch
Product: gcc
Version: 9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
Blocks: 87403
Target Milestone: ---
As I wrote to Martin Jambor privately, the warning found a real issue:
/home/marxin/Programming/gcc/gcc/omp-grid.c:1063:15:Semantic Issue: comparison
of two values with different enumeration types in switch statement ('enum
tree_code' and 'omp_clause_code'): -Wenum-compare-switch
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87403
[Bug 87403] Issues that suggest a new warning
More information about the Gcc-bugs
mailing list