https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66264
Martin Jambor changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66264
--- Comment #3 from Andrew Pinski ---
enum Foo { A,B,C,D };
int square(Foo f) {
switch (f) {
case A: return 33;
case B: return 24;
case C: return 857;
case D: return 980;
//default: return 0;
};
//return 0; //
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66264
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66264
--- Comment #2 from Martin Jambor jamborm at gcc dot gnu.org ---
(In reply to Richard Biener from comment #1)
Should be switch-conversion doing the job?
Yes, I think so. I'll try to have a look in the near future.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66264
Richard Biener rguenth at gcc dot gnu.org changed:
What|Removed |Added
Keywords|