http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58099

--- Comment #14 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Janus' submitted patch: http://gcc.gnu.org/ml/fortran/2013-08/msg00026.html

Looks great and fixes also comment 10's test case.

 * * *

I tried to test for the "intrinsic elemental" of comment 2's standard quote.
That works without "elemental" in the INTERFACE but not with. However, the
standard states for "acos": "Class. Elemental function." Nonetheless, gfortran
prints:

  Error: Interface mismatch in procedure pointer assignment at (1):
         Mismatch in PURE attribute"

for

intrinsic acos
interface
  elemental real function oo(x) ! Works (and should work) without "elemental"
    real, intent(in) :: x
  end function
end interface
procedure(oo),pointer :: bar
bar => acos
end

Reply via email to