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/30689] equivalence modifies common block



------- Comment #5 from kargl at gcc dot gnu dot org  2007-02-04 02:26 -------
(In reply to comment #4)
> OK, maybe gfortran is right.

It isn't that gfortran is right or wrong. :-)

The -fdefault-integer-8 changes the default integer kind to
an 8 byte integer.  The default real kind is still 4 bytes,
whereas the fortran standard requires that the default
real and integer kinds should occupy the same amount of 
storage. If you use both -fdefault-integer-8 and 
-fdefault-real-8 at the same time, everything magically
work.

And, yes, EQUIVALENCE is ugly and leads to a boat load
of problems.


-- 


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


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