This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Testcase for fortran/PR3743 "Reference to intrinsic `ISHFT' invalid".
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: "Billinghurst, David (CRTS)" <David dot Billinghurst at riotinto dot com>
- Cc: Toon Moene <toon at moene dot indiv dot nluug dot nl>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 31 Dec 2001 18:26:27 -0500
- Subject: Re: Testcase for fortran/PR3743 "Reference to intrinsic `ISHFT' invalid".
- References: <8D00C32549556B4E977F81DBC24E985D1B1B8A@crtsmail1.technol_exch.corp.riotinto.org>
i3 = ISHFT(i,BIT_SIZE(i))
^
Reference to intrinsic `ISHFT' at (^) invalid -- one or more arguments have incorrect type
I just updated the PR information in GNATS. The failure (at least
on PowerPC) is due to G77 considering BIT_SIZE a function returning REAL.
Fortran's implicit type rules make a function beginning with the letter
'B' default to type REAL which is not valid as the second argument to
ISHFT.
I am not familiar enough with G77 parsing to know when BIT_SIZE is
suppose to be recognized as an intrinsic instead of a function call.
Given that this behaves differently on different platforms, I suspect
there is something non-deterministic in the parser.
David