This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: ibits
- From: Thomas Koenig <Thomas dot Koenig at online dot de>
- To: Dean McCullough <dpmccul at comcast dot net>
- Cc: fortran at gcc dot gnu dot org
- Date: Tue, 2 Jan 2007 16:35:12 +0100
- Subject: Re: ibits
- References: <459A7834.8090708@comcast.net>
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