This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70104

--- Comment #2 from Niks <np199113 at gmail dot com> ---
(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 allowed in a switch.

Thank you.!

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]