[Bug fortran/22304] gfortran silently changes values in equilvanence'd variables

albertm at uphs dot upenn dot edu gcc-bugzilla@gcc.gnu.org
Wed Jul 6 05:09:00 GMT 2005


------- Additional Comments From albertm at uphs dot upenn dot edu  2005-07-06 05:09 -------
Created an attachment (id=9212)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9212&action=view)
minimal test case

The bug persists in gcc version 4.1.0 20050702 (experimental)

If I replace:
     EQUIVALENCE(K(1),I),(J,K(2))
with
     EQUIVALENCE(I,K(1)),(J,K(2))
or
     EQUIVALENCE(K(1),I),(K(2),J)
the code does not demonstrate this problem.

Thank you.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22304



More information about the Gcc-bugs mailing list