This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/50619] Surprising interaction between -finit-real=NAN and the associate construct


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]