This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/31820] Warning if case label value exceeds maximum value for type



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]