Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
27523 Discussions

ifort/ifx should reject the G0 descriptor when -stand f18 is used on the compile

ur
Novice
142 Views

A minor issue, but ifort/ifx should really generate a compile-time
error if g0 is used as a descriptor on input, at least with
-stand used; even if it is a useful extension I cannot figure out
the use for (??).

ifort testit.f90 -stand f18 -warn all
./a.out
10 33000.00 0 0

program testit
character(len=:),allocatable :: str
character(len=256) :: iomsg
integer :: i,iostat,j,k
real :: r
i=-999
j=i
k=i
str='10 3.3+4 '
read(str,'(g0,g0,i3,f6.2)',iostat=iostat,iomsg=iomsg)j,k,i,r
if(iostat.eq.0)then
write(*,*)i,r,j,k
else
write(*,*)trim(iomsg)
endif
end program testit

0 Kudos
1 Solution
Ron_Green
Moderator
126 Views

I will get a bug report started on this one.  Thanks for bringing this to us!

View solution in original post

2 Replies
Ron_Green
Moderator
127 Views

I will get a bug report started on this one.  Thanks for bringing this to us!

Ron_Green
Moderator
119 Views

bug ID is CMPLRLLVM-43083


Reply