This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/52585] Wromg result for ASSOCIATED with dummy procedure pointer
- 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: Wed, 14 Mar 2012 14:41:05 +0000
- Subject: [Bug fortran/52585] Wromg result for ASSOCIATED with dummy procedure pointer
- Auto-submitted: auto-generated
- References: <bug-52585-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52585
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-03-14 14:41:05 UTC ---
I think one needs something like the following for both the first and the
second argument.
if (arg1->expr->symtree->n.sym->attr.proc_pointer
&& arg1->expr->symtree->n.sym->attr.dummy)
arg1se.expr = build_fold_indirect_ref_loc (input_location,
arg1se.expr);