(i first reported this to mingw32-w64's bug tracker:
and was forwarded here)
The attached fortran program aborts() (a host associated variable
changes value from host to hostee without asking) using
gfortran -O1 -o fail fail.f90; ./fail
on a 64bit windows 7 (mingw32-w64) platform.
Very probably platform dependent as i can't reproduce this elsewhere.
Also 32bit compile on the same platform works as does unoptimized
On a larger application i see sevaral failures of the same kind, seems
to depend also on the number and/or size of the local variables in the
PS. I entered middle-end as the bugs 'component' as an optimization flag seems
to be needed to trigger this...
Summary: fortran host associated variables+optimization==failure?
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jpr at csc dot fi
GCC target triplet: x86_64-w64-mingw32