This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

Re: ibits


On Tue, Jan 02, 2007 at 10:20:20AM -0500, Dean McCullough wrote:
> I am trying to compile some old code which uses 64 bits integers, and 
> uses the function ibits.  This function is not working.
> 
> Any suggestions?

> I am using gfortran-4.03

gfortran 4.0 is old and known to be very buggy; hundreds of
bugs have been fixed in newer versions.

Your test program works for me with 4.3.0 20061227 on
i686-pc-linux-gnu.

I would suggest updating to a newer version.

Also (as a general rule), -fdefault-integer-8 can cause the
compiler to behave in non-conforming ways (for example with
equivalences or TRANSFER), because of the different sizes
for default real and integer.  It is probably better to
specify large variables explicitly.

Hope this helps

	Thomas


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