This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/30020] missing limited range warning for a switch statement
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Nov 2006 11:04:17 -0000
- Subject: [Bug c/30020] missing limited range warning for a switch statement
- References: <bug-30020-1186@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-11-30 11:04 -------
I think it is harder in this case as the char is promoted to int and then we
don't demote it until after the front-end is doing its parsing ...
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
GCC build triplet|all |
GCC host triplet|all |
GCC target triplet|all |
Keywords| |diagnostic
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30020