------- Comment #5 from phl at kth dot se 2008-02-17 11:55 ------- Subject: Re: IBITS gives compiler error
> The bit intrinsic model numbers do not have a sign bit, and you're asking > IBITS to return 2**32, which is outside of the range for gfortran's > default > integer kind. > Actually it is supposed to just return the first 32 bits of the integer "-1" = (1111...1)_2 and interpret it as "-1". What about replacing the IBITS statement with "NOT (0)" or "IAND (-1, -1)", or "IOR (-1, 0)" these would then also fall outside the range and not work either? However, they all work fine with version "GNU Fortran (GCC) 4.2.1 (Ubuntu 4.2.1-5ubuntu4)" and they print "-1". On the other hand I get /usr/bin/ld: warning can't open dynamic library: /libgcc_s.1.dylib referenced from: /usr/local/gfortran/lib/gcc/powerpc-apple-darwin8.10.0/4.3.0/../../../libgfortran.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) when I run it on my mac with version "GNU Fortran (GCC) 4.3.0 20071017 (experimental) [trunk revision 129405]" but perhaps that also as it should be? Regards /PHL -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35223