This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33818] New: [Regression 4.3] Bogus error "Variable 'str' is used at (1) before the ENTRY statement"
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Oct 2007 14:54:48 -0000
- Subject: [Bug fortran/33818] New: [Regression 4.3] Bogus error "Variable 'str' is used at (1) before the ENTRY statement"
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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