[Bug c++/90805] Overflow in switch case is not detected

2019-06-09 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90805 Jonathan Wakely changed: What|Removed |Added Keywords||accepts-invalid Status|UNC

[Bug c++/90805] Overflow in switch case is not detected

2019-06-10 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90805 Martin Liška changed: What|Removed |Added Keywords||diagnostic CC|

[Bug c++/90805] Overflow in switch case is not detected

2019-06-10 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90805 --- Comment #2 from Marek Polacek --- Yeah, in switch we have: case constant-expression : where the constant-expression shall be a converted constant expression of the adjusted type of the switch condition. And narrowing is not allowed in a

[Bug c++/90805] Overflow in switch case is not detected

2019-06-13 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90805 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[Bug c++/90805] Overflow in switch case is not detected

2019-08-01 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90805 --- Comment #3 from Marek Polacek --- Author: mpolacek Date: Thu Aug 1 16:27:04 2019 New Revision: 273976 URL: https://gcc.gnu.org/viewcvs?rev=273976&root=gcc&view=rev Log: PR c++/90805 - detect narrowing in case values. * decl.

[Bug c++/90805] Overflow in switch case is not detected

2019-08-01 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90805 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---