This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/52832] [F03] ASSOCIATE construct with proc-pointer selector is rejected
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 24 Jan 2013 14:52:48 +0000
- Subject: [Bug fortran/52832] [F03] ASSOCIATE construct with proc-pointer selector is rejected
- Auto-submitted: auto-generated
- References: <bug-52832-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52832
--- Comment #3 from janus at gcc dot gnu.org 2013-01-24 14:52:48 UTC ---
(In reply to comment #2)
> Here is a patch to accept the test case in comment 0:
It fails on:
FAIL: gfortran.dg/associate_6.f03 -O (test for excess errors)
associate_6.f03:30.25:
ASSOCIATE (arr => func (4))
1
Error: Expected ')' or ',' at (1)
Since we're fooling the parser to believe that we're matching a proc-ptr
assignment, it does not swallow the parens after the function name (but expects
a 'bare' function name as a proc-ptr target).
(I wonder whether we properly handle proc-ptr-valued functions as target in a
proc-ptr assignment. Should check that ...)