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

2010-05-11 Thread dfranke at gcc dot gnu dot org
--- Comment #7 from dfranke at gcc dot gnu dot org 2010-05-11 15:43 --- Subject: Bug 31820 Author: dfranke Date: Tue May 11 15:43:16 2010 New Revision: 159278 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=159278 Log: gcc/fortran/: 2010-05-11 Daniel Franke

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

2010-05-11 Thread dfranke at gcc dot gnu dot org
--- Comment #8 from dfranke at gcc dot gnu dot org 2010-05-11 15:46 --- Fixed in trunk. Closing. -- dfranke at gcc dot gnu dot org changed: What|Removed |Added

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

2010-05-09 Thread dfranke at gcc dot gnu dot org
--- Comment #5 from dfranke at gcc dot gnu dot org 2010-05-09 09:11 --- (In reply to comment #4) It should be sufficient to convert all case-selectors to the same kind as the case-expression. We should then be giving exactly the same error as g95, unless I'm missing something. This

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

2010-05-09 Thread dfranke at gcc dot gnu dot org
--- Comment #6 from dfranke at gcc dot gnu dot org 2010-05-09 12:59 --- (In reply to comment #5) Nonetheless, I also think that it is counter-intuitive. The least that could be done: add a warning (-Wconversion? -Wsurprising?) before converting the case-expr, mentioning that at

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

2007-12-08 Thread fxcoudert at gcc dot gnu dot org
-- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|fxcoudert at gcc dot gnu dot|unassigned at gcc dot gnu |org

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

2007-10-04 Thread tobi at gcc dot gnu dot org
--- Comment #4 from tobi at gcc dot gnu dot org 2007-10-04 21:58 --- It should be sufficient to convert all case-selectors to the same kind as the case-expression. We should then be giving exactly the same error as g95, unless I'm missing something. -- tobi at gcc dot gnu dot org

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

2007-08-15 Thread fxcoudert at gcc dot gnu dot org
--- Comment #3 from fxcoudert at gcc dot gnu dot org 2007-08-15 14:38 --- (In reply to comment #1) * An INTEGER SELECT construct has a CASE that can never be matched as its lower value is greater than its upper value. It is also implemented: $ cat u1.f90 integer :: i, j

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

2007-08-08 Thread fxcoudert at gcc dot gnu dot org
-- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |fxcoudert at gcc dot gnu dot |dot org

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

2007-06-21 Thread dfranke 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

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

2007-06-21 Thread dfranke at gcc dot gnu dot org
--- Comment #2 from dfranke at gcc dot gnu dot org 2007-06-21 19:05 --- * An INTEGER SELECT construct has a CASE that can never be matched as its lower value is greater than its upper value. In these cases, no error is shown (integer(kind=1) :: i): select case (i) case (300)