[Bug fortran/50619] Surprising interaction between -finit-real=NAN and the associate construct
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Oct 5 08:25:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50619
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
CC| |burnus at gcc dot gnu.org,
| |janus at gcc dot gnu.org
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-10-05 08:25:21 UTC ---
This seems to be an ordering problem - from -fdump-tree-original:
test (struct test_ty & restrict e)
{
{
real(kind=4) * rmult;
{
I/O before ASSOCIATE ...
}
rmult = &e->rmult;
*rmult = Nan;
{
I/O in ASSOCIATE ...
}
The "*rmult = NaN" line should be before "rmult = &e->rmult". I don't quite see
whether that's a problem of inserting the NAN or of the ASSOCIATE assignment.
More information about the Gcc-bugs
mailing list