- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The compiler response of "error #7846: It is not permissible to reference the value of an ac-implied-do variable in one of its limit expressions." for the following code appears incorrect:
subroutine foo() integer, parameter :: m = 0 integer, parameter :: n = 1 integer :: i integer :: j(m:n) j = [( i, i = int(m, kind=kind(i)), int(n, kind=kind(i)) )] end subroutine foo
Compiling with Intel(R) Visual Fortran Compiler 16.0 [Intel(R) 64]... foo.f90 foo.f90(8): error #7846: It is not permissible to reference the value of an ac-implied-do variable in one of its limit expressions. compilation aborted for foo.f90 (code 1)
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for reporting this. I reported it to our Developers.
(Internal tracking id: DPD200378387)
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