[Bug c/70104] New: Should give an error when using multiple case value in switch

2016-03-06 Thread np199113 at gmail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: np199113 at gmail dot com Target Milestone: --- In switch case if one case uses two values it does not give error but multiple case use two values it gives error. For example:- int iswovel

[Bug c/70104] Should give an error when using multiple case value in switch

2016-03-06 Thread np199113 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70104 --- Comment #2 from Niks --- (In reply to Jakub Jelinek from comment #1) > 'a' || 'A' is 1, so there is no reason to give an error about it. > The error in the second case is because you have two case labels with the > same value, 1. That is not