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/32088] [4.3 Regression] ICE (doesn't occur if given function standalone instead on internal)



------- Comment #4 from fxcoudert at gcc dot gnu dot org  2007-05-27 11:23 -------
(In reply to comment #3)
> The question is now, why is proc->result->attr.implicit_type not set?

I believe it's set on the function name, but not on the result variable.
Consider the following reduced testcase:

subroutine dummy
contains
  function quadric() result(c)
    dimension c(1)
    c = 0
  end function
end

It doesn't ICE when the function itself is called c, and the result
construction isn't used.


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fxcoudert at gcc dot gnu dot
                   |                            |org


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


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