This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/40728] Bogus error "Error: Can't convert UNKNOWN to REAL(8) at (1)"
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jul 2009 08:52:08 -0000
- Subject: [Bug fortran/40728] Bogus error "Error: Can't convert UNKNOWN to REAL(8) at (1)"
- References: <bug-40728-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from burnus at gcc dot gnu dot org 2009-07-23 08:52 -------
Hmm, to early, the gfc_*_intrinsic are not called, unless attr.intrinsic is
set. The but the issue is indeed that they are regarded as PTYPE_SPECIFIC and
not as PTYPE_UNKNOWN, as a printf in resolve_function shows - the question is
only why.
* * *
The following program causes an ICE in gfc_typenode_for_spec due to BT_UNKNOWN
-- and no warning/error is shown before ("gfortran -std=f95"):
implicit none
real :: r
r = 0.4
print *, atanh(r)
end
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40728