- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
ifort v12 gives a bogus warning for the following case:
% ifort -stand -c ifort-bogus-warning.f90
ifort-bogus-warning.f90(34): warning #6191: Fortran 2003 requires an arithmeticdata type in this context. [SIZE]
real :: z(size (x,1)*size (x,2)) ! <- ifort warns here
--------------------------^
ifort-bogus-warning.f90(34): warning #6191: Fortran 2003 requires an arithmeticdata type in this context. [SIZE]
real :: z(size (x,1)*size (x,2)) ! <- ifort warns here
-------------------------------------^
Here's the source:
ifort-bogus-warning.f90
When I comment out the interface operator(*), the warning disappears.
I think that the code is fully standard conforming.
Harald
ifort v12 gives a bogus warning for the following case:
% ifort -stand -c ifort-bogus-warning.f90
ifort-bogus-warning.f90(34): warning #6191: Fortran 2003 requires an arithmeticdata type in this context. [SIZE]
real :: z(size (x,1)*size (x,2)) ! <- ifort warns here
--------------------------^
ifort-bogus-warning.f90(34): warning #6191: Fortran 2003 requires an arithmeticdata type in this context. [SIZE]
real :: z(size (x,1)*size (x,2)) ! <- ifort warns here
-------------------------------------^
Here's the source:
ifort-bogus-warning.f90
When I comment out the interface operator(*), the warning disappears.
I think that the code is fully standard conforming.
Harald
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I forgot to mention: commenting out the "interface size" part
makes the warning also disappear.
Harald
makes the warning also disappear.
Harald
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks - we'll take a look at this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Escalated as issue DPD200170370.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Fixed in a future release.

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