[Bug fortran/30881] New: incorrect error message for valid code

jv244 at cam dot ac dot uk gcc-bugzilla@gcc.gnu.org
Tue Feb 20 07:53:00 GMT 2007


With recent trunk, gfortran incorrectly generates an error for the following
standard code:
INTEGER, PARAMETER :: K=1
INTEGER ::  I
I=TRANSFER(.TRUE.,K)
SELECT CASE(I)
CASE(TRANSFER(.TRUE.,K))
CASE(TRANSFER(.FALSE.,K))
 CALL ABORT()
CASE DEFAULT
 CALL ABORT()
END SELECT
I=TRANSFER(.FALSE.,K)
SELECT CASE(I)
CASE(TRANSFER(.TRUE.,K))
 CALL ABORT()
CASE(TRANSFER(.FALSE.,K))
CASE DEFAULT
 CALL ABORT()
END SELECT
END


-- 
           Summary: incorrect error message for valid code
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jv244 at cam dot ac dot uk


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



More information about the Gcc-bugs mailing list