- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I encountered an error using ifort 11.0.066 to compile some code that Paul van Delst says used to compile OK with version 10. Here is a simple example:
program test_byte
IMPLICIT NONE
INTEGER, PARAMETER :: byte = 123
! INTEGER, PARAMETER :: itype = byte
INTEGER, PARAMETER :: itypes(1) = (/ byte /)
end program
The syntax error #5082 occurs at the line defining itypes(1). The code with that line commented and the previous line uncommented compiles without error.
program test_byte
IMPLICIT NONE
INTEGER, PARAMETER :: byte = 123
! INTEGER, PARAMETER :: itype = byte
INTEGER, PARAMETER :: itypes(1) = (/ byte /)
end program
The syntax error #5082 occurs at the line defining itypes(1). The code with that line commented and the previous line uncommented compiles without error.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I agree that this is a bug. I'll report it to the developers. Thanks for letting us know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Reported as issue DPD200111543. A workaround is to use the F2003 syntax [BYTE] for the array constructor.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Steve Lionel (Intel)
Reported as issue DPD200111543. A workaround is to use the F2003 syntax [BYTE] for the array constructor.

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