- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Both these files compile OK in Intel but fail in Digital:
test5.for:
SUBROUTINE ORNL_CU(ALLOY,ACTIVITY,GMPURE,GMOFALLOY,
$ TEMPERATURE,PRESSURE,NUM,NPHASE)
IMPLICIT NONE
DOUBLE PRECISION ALLOY(NUM)
DOUBLE PRECISION ACTIVITY(NPHASE,NUM),GMPURE(NPHASE,NUM)
DOUBLE PRECISION GMOFALLOY(NPHASE), TEMPERATURE,PRESSURE
INTEGER NUM, NPHASE
CONTINUE
RETURN
END
should this not fail as NUM and NPHASE have not been declared before being used?
test6.f90:
program test
implicit none
integer :: i
do i = 1, 10
IF(i .eq. 5)GOTO&
90
cycle
90 continue
write(6,*) 'got here'
enddo
end
Should this not fail as the split line is missing a space between GOTO and 90 (free format source)
test5.for:
SUBROUTINE ORNL_CU(ALLOY,ACTIVITY,GMPURE,GMOFALLOY,
$ TEMPERATURE,PRESSURE,NUM,NPHASE)
IMPLICIT NONE
DOUBLE PRECISION ALLOY(NUM)
DOUBLE PRECISION ACTIVITY(NPHASE,NUM),GMPURE(NPHASE,NUM)
DOUBLE PRECISION GMOFALLOY(NPHASE), TEMPERATURE,PRESSURE
INTEGER NUM, NPHASE
CONTINUE
RETURN
END
should this not fail as NUM and NPHASE have not been declared before being used?
test6.f90:
program test
implicit none
integer :: i
do i = 1, 10
IF(i .eq. 5)GOTO&
90
cycle
90 continue
write(6,*) 'got here'
enddo
end
Should this not fail as the split line is missing a space between GOTO and 90 (free format source)
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The Intel compiler does uninitialized variable checking at run-time when the option is enabled.
There's nothing wrong with the second case. There is indeed a space after the word GOTO - several of them in fact.
There's nothing wrong with the second case. There is indeed a space after the word GOTO - several of them in fact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the first case, it's not the runtime I'm worried about, I thought it shouldn't compile as I have IMPLICIT NONE and NUM and NPHASE have been used before being declared. Maybe it's just an old bugbear with Digital / CVF that Intel now doesn't worry about.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ah, I see. I know a lot of compilers would let this go because the variables are declared later, but the standard requires that they be declared "previously". I'll ask the developers to look at this.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page