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: 22 Jul 2009 08:11:44 -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 #2 from burnus at gcc dot gnu dot org 2009-07-22 08:11 -------
The error comes about since with -std=2003, asinh is not an available
intrinsic. Solution for the testcase/attached file: "-fall-intrinsics" or
removal of a(sin,cos,tan)h - which were added only with F2008 though the REAL
version was a GNU extension before.
* * *
Current result (4.4, 4.5):
Error: Can't convert UNKNOWN to REAL(4) at (1)
Expected: A better error message such as gfortran 4.2 had ["Regression"]:
Error: Function 'asinh' at (1) has no IMPLICIT type
If one enables implicit typing (or explicitly types the function), one gets the
expected:
undefined reference to `asinh_'
And if one uses "abcd", one gets the old 4.2 error. I tried to trace the
problem - with out success so far. At least the function gfc_is_intrinsic seems
to work.
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|rejects-valid |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40728