https://sourceware.org/bugzilla/show_bug.cgi?id=25057

Jason Merrill <jason at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at redhat dot com

--- Comment #2 from Jason Merrill <jason at redhat dot com> ---
(In reply to Alan Modra from comment #1)
> case labels are integral constant
> expressions that are implicitly converted to the type of switch condition,
> which is unsigned int here.

Agreed.  [stmt.switch]

"...the constant-expression shall be a converted constant expression (5.19) of
the promoted type of the switch condition."

so there's no narrowing to int.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to