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/52832] [F03] ASSOCIATE construct with proc-pointer selector is rejected


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 ...)


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