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/49590] ENTRY: Reject combining USE associated variable with RESULT variable


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

--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-08-23 15:50:20 UTC ---
(In reply to comment #1)
> The part you quote concerns "statement functions".  There are
> no statement functions in your example.

Well spotted. The problem also occurs in the statement function case - at least
when the entry function does not set a return value - and -Wall also does not
warn in that case ...

  FUNCTION f()
   x(i) = i
   f = x(4)
  ENTRY e() RESULT(x)
!    x = 3
  END FUNCTION


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