This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/49590] ENTRY: Reject combining USE associated variable with RESULT variable
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 23 Aug 2011 15:50:20 +0000
- Subject: [Bug fortran/49590] ENTRY: Reject combining USE associated variable with RESULT variable
- Auto-submitted: auto-generated
- References: <bug-49590-4@http.gcc.gnu.org/bugzilla/>
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