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

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

ur
New Contributor II
604 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
588 Views

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

View solution in original post

4 Replies
Ron_Green
Moderator
589 Views

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

Ron_Green
Moderator
581 Views

bug ID is CMPLRLLVM-43083


0 Kudos
Ron_Green
Moderator
351 Views

This bug is fixed in 2023.2.0


0 Kudos
Ron_Green
Moderator
351 Views

this bug is fixed in 2023.2.0


Reply