This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31820] Warning if case label value exceeds maximum value for type
- From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jun 2007 17:49:13 -0000
- Subject: [Bug fortran/31820] Warning if case label value exceeds maximum value for type
- References: <bug-31820-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from dfranke at gcc dot gnu dot org 2007-06-21 17:49 -------
http://gcc.gnu.org/onlinedocs/gfortran/Error-and-Warning-Options.html
-Wsurprising
[...] This currently produces a warning under the following circumstances:
* An INTEGER SELECT construct has a CASE that can never be matched as its
lower value is greater than its upper value.
* A LOGICAL SELECT construct has three CASE statements.
The latter is implemented and gives:
Warning: Logical SELECT CASE block at (1) has more that two cases
but the former?
--
dfranke at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dfranke at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31820