This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30689] equivalence modifies common block
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Feb 2007 02:26:57 -0000
- Subject: [Bug fortran/30689] equivalence modifies common block
- References: <bug-30689-3791@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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