This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/40728] Bogus error "Error: Can't convert UNKNOWN to REAL(8) at (1)"



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]