https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66322
Andrew Pinski changed:
What|Removed |Added
CC||dcb314 at hotmail dot com
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66322
Marek Polacek changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66322
--- Comment #8 from Marek Polacek mpolacek at gcc dot gnu.org ---
Author: mpolacek
Date: Mon Jun 29 13:12:44 2015
New Revision: 225116
URL: https://gcc.gnu.org/viewcvs?rev=225116root=gccview=rev
Log:
PR c/66322
* c-common.c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66322
--- Comment #7 from Marek Polacek mpolacek at gcc dot gnu.org ---
Patch posted some time ago:
https://gcc.gnu.org/ml/gcc-patches/2015-06/msg00790.html
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66322
Manuel López-Ibáñez manu at gcc dot gnu.org changed:
What|Removed |Added
CC||manu at gcc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66322
Jakub Jelinek jakub at gcc dot gnu.org changed:
What|Removed |Added
CC||jakub at gcc dot
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66322
--- Comment #6 from Manuel López-Ibáñez manu at gcc dot gnu.org ---
(In reply to Jakub Jelinek from comment #2)
Well, using switch on bool is always weird, one really should use if for
that.
If you want fallthrough, then just use if (cond) {
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66322
Marek Polacek mpolacek at gcc dot gnu.org changed:
What|Removed |Added
CC||mpolacek at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66322
--- Comment #4 from Marek Polacek mpolacek at gcc dot gnu.org ---
I guess we also shouldn't warn on
(1) switch (bool)
{
case true: ...
default: ...
}
(2) switch (bool)
{
case true: ...
}
(3) switch (bool)
{
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66322
Szabolcs Nagy nszabolcs at gmail dot com changed:
What|Removed |Added
CC||nszabolcs at
10 matches
Mail list logo