https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90805
Jonathan Wakely changed:
What|Removed |Added
Keywords||accepts-invalid
Status|UNC
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90805
Martin Liška changed:
What|Removed |Added
Keywords||diagnostic
CC|
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90805
Marek Polacek changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned a
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.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90805
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---