[Bug c/87983] Feature: Add a warning when case labels from a different enum than the one in switch(EXPR) are used

2022-04-10 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87983 Eric Gallager changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug c/87983] Feature: Add a warning when case labels from a different enum than the one in switch(EXPR) are used

2022-01-20 Thread avarab at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87983 --- Comment #4 from Ævar Arnfjörð Bjarmason --- (In reply to Eric Gallager from comment #3) > Is the expectation that this would come from -Wswitch, -Wswitch-enum, > -Wenum-compare, -Wenum-conversion, or some new flag? I think a new flag would

[Bug c/87983] Feature: Add a warning when case labels from a different enum than the one in switch(EXPR) are used

2022-01-19 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87983 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org ---

[Bug c/87983] Feature: Add a warning when case labels from a different enum than the one in switch(EXPR) are used

2022-01-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87983 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug c/87983] Feature: Add a warning when case labels from a different enum than the one in switch(EXPR) are used

2022-01-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87983 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug c/87983] Feature: Add a warning when case labels from a different enum than the one in switch(EXPR) are used

2018-11-12 Thread avarab at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87983 --- Comment #1 from Ævar Arnfjörð Bjarmason --- FYI: I filed a bug with clang for the same feature: https://bugs.llvm.org/show_bug.cgi?id=39635