[Bug fortran/33818] New: [Regression 4.3] Bogus error "Variable 'str' is used at (1) before the ENTRY statement"
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Oct 19 14:54:00 GMT 2007
Reduced from http://gcc.gnu.org/ml/fortran/2007-10/msg00280.html
The following gives the bogus error:
write(lu,'(a)') 'UNIT '//UpperCase(UNAME(1))
1
Error: Variable 'str' is used at (1) before the ENTRY statement in which it is
a parameter
subroutine ExportZMX(lu)
implicit real(selected_real_kind(15)) (a-h,o-z)
character(*),parameter :: UNAME(1:1)=(/'XXX'/)
write(lu,'(a)') 'UNIT '//UpperCase(UNAME(1))
entry ExportSEQ(lu)
contains
function UpperCase(str) result(res)
character(*),intent(in) :: str
character(len(str)) res
res=str
end function
end
--
Summary: [Regression 4.3] Bogus error "Variable 'str' is used at
(1) before the ENTRY statement"
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33818
More information about the Gcc-bugs
mailing list