[Bug fortran/52832] [F03] ASSOCIATE construct with proc-pointer selector is rejected
janus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 24 14:53:00 GMT 2013
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 ...)
More information about the Gcc-bugs
mailing list