- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm using
> ifort --version
ifort (IFORT) 12.1.0 20111011
Copyright (C) 1985-2011 Intel Corporation. All rights reserved.
on
> uname -a
Linux stonehenge 3.1.1-2.fc16.x86_64 #1 SMP Mon Nov 14 15:46:10 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
With input source
> cat ub.f90
subroutine sub(x,n)
integer :: n, x(n,1:2)
end
I see the final upper bound 2 is dropped
> ifort -c -gen-interfaces ub.f90 ; ifort -c sub__genmod.f90
sub__genmod.f90(6): error #6644: The dimension specifications are incompatible.
INTEGER(KIND=4) :: X(N,1:)
---------------------------------^
compilation aborted for sub__genmod.f90 (code 1)
> ifort --version
ifort (IFORT) 12.1.0 20111011
Copyright (C) 1985-2011 Intel Corporation. All rights reserved.
on
> uname -a
Linux stonehenge 3.1.1-2.fc16.x86_64 #1 SMP Mon Nov 14 15:46:10 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
With input source
> cat ub.f90
subroutine sub(x,n)
integer :: n, x(n,1:2)
end
I see the final upper bound 2 is dropped
> ifort -c -gen-interfaces ub.f90 ; ifort -c sub__genmod.f90
sub__genmod.f90(6): error #6644: The dimension specifications are incompatible.
INTEGER(KIND=4) :: X(N,1:)
---------------------------------^
compilation aborted for sub__genmod.f90 (code 1)
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How amusing - thanks. I have escalated this as issue DPD200176329. The generated .mod appears to work correctly, so this is just a "cosmetic" issue in the .f90, which is not used by the compiler. Still, we recognize that some people do use this generated source so we should fix the bug.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This has been fixed for a release later this year.
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