[Bug fortran/85387] New: incorrect output with optimization /= 0
zeccav at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Apr 12 22:35:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85387
Bug ID: 85387
Summary: incorrect output with optimization /= 0
Product: gcc
Version: 8.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: zeccav at gmail dot com
Target Milestone: ---
Host: x86_64-pc-linux-gnu
! incorrect output with optimization /= 0
! on trunk 259205
real efg_pw(2,2)
efg_pw(1,1)=1
efg_pw(2,1)=2
efg_pw(1,2)=3
efg_pw(2,2)=4
! with optimization /= 0 displays nothing
print *,((efg_pw(i, j), i=1, j), j=1, 2) !should display 1.00000000 3.00000000
4.00000000
end
More information about the Gcc-bugs
mailing list