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/25073] CASEs overlap



------- Comment #1 from fxcoudert at gcc dot gnu dot org  2005-11-26 19:54 -------
gfortran doesn't detect that the CASEs overlap.

## g95 ##
In file foo.f90:3

CASE(.true.)
     1
In file foo.f90:5

CASE(.true.)
     2
Error: CASEs at (1) and (2) overlap
## Intel ##
fortcom: Error: foo.f90, line 5: This case-value or case-value-range matches a
case-value in another case-value-range within the same case-construct.
CASE(.true.)
-----^
compilation aborted for foo.f90 (code 1)
## Portland ##
PGF90-S-0310-Duplicate case value  (foo.f90: 5)
  0 inform,   0 warnings,   1 severes, 0 fatal for MAIN
## Sun ##

CASE(.true.)
     ^
"foo.f90", Line = 5, Column = 6: ERROR: The case value has the same value as a
case value on line 3.


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |accepts-invalid
   Last reconfirmed|0000-00-00 00:00:00         |2005-11-26 19:54:13
               date|                            |
            Summary|better diagnostic needed    |CASEs overlap


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25073


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