This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/50619] Surprising interaction between -finit-real=NAN and the associate construct
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 05 Oct 2011 08:25:21 +0000
- Subject: [Bug fortran/50619] Surprising interaction between -finit-real=NAN and the associate construct
- Auto-submitted: auto-generated
- References: <bug-50619-4@http.gcc.gnu.org/bugzilla/>
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.