This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: fortran/3743: Reference to intrinsic `ISHFT' invalid
- From: dje at gcc dot gnu dot org
- To: David dot Billinghurst at riotinto dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 31 Dec 2001 23:15:19 -0000
- Subject: Re: fortran/3743: Reference to intrinsic `ISHFT' invalid
- Reply-to: dje at gcc dot gnu dot org, David dot Billinghurst at riotinto dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: Reference to intrinsic `ISHFT' invalid
State-Changed-From-To: open->analyzed
State-Changed-By: dje
State-Changed-When: Mon Dec 31 15:15:18 2001
State-Changed-Why:
G77 does not recognize BIT_SIZE intrinsic as integer. The
implicit type for a function whose name begins with the
letter 'B' is REAL, so G77 reports that a function returning
basictypeREAL is not a valid argument to the ISHFT intrinsic
expecting a basictypeINTEGER argument. Declaring BIT_SIZE
as INTEGER removes the error.
It is unclear why this only fails on some targets. BIT_SIZE
does not seem to be recognized as an intrinsic when the
arguments to ISHFT are examined, it considers BIT_SIZE a
function returning REAL. Is something non-deterministic
in the parser?
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3743