diff options
author | Janus Weil <janus@gcc.gnu.org> | 2009-08-25 16:26:44 +0200 |
---|---|---|
committer | Janus Weil <janus@gcc.gnu.org> | 2009-08-25 16:26:44 +0200 |
commit | 23878536a6b359865599d300c214bbb8fef83a43 (patch) | |
tree | 3af99476a57f873526e5deb43b0c56abfcee584b /gcc/fortran/trans-stmt.h | |
parent | 4df62c77fe216dd68b85f09d20910203e035efb2 (diff) | |
download | gcc-23878536a6b359865599d300c214bbb8fef83a43.zip gcc-23878536a6b359865599d300c214bbb8fef83a43.tar.gz gcc-23878536a6b359865599d300c214bbb8fef83a43.tar.bz2 |
re PR fortran/41139 (a procedure pointer call as actual argument)
2009-08-25 Janus Weil <janus@gcc.gnu.org>
PR fortran/41139
* primary.c (gfc_match_varspec): Make sure EXPR_PPC is only used for
calls to procedure pointer components, other references to procedure
pointer components are EXPR_VARIABLE.
* resolve.c (resolve_actual_arglist): Bugfix (there can be calls without
actual arglist).
* trans-expr.c (gfc_get_proc_ptr_comp): Renamed to 'get_proc_ptr_comp',
removed argument 'se' and made static. Avoid inserting a temporary
variable for calling the PPC.
(conv_function_val): Renamed gfc_get_proc_ptr_comp.
(gfc_conv_procedure_call): Distinguish functions returning a procedure
pointer from calls to a procedure pointer. Distinguish calls to
procedure pointer components from procedure pointer components as
actual arguments.
* trans-stmt.h (gfc_get_proc_ptr_comp): Make it static.
2009-08-25 Janus Weil <janus@gcc.gnu.org>
PR fortran/41139
* gfortran.dg/proc_ptr_25.f90: New.
* gfortran.dg/proc_ptr_comp_18.f90: New.
* gfortran.dg/proc_ptr_comp_19.f90: New.
From-SVN: r151081
Diffstat (limited to 'gcc/fortran/trans-stmt.h')
-rw-r--r-- | gcc/fortran/trans-stmt.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/fortran/trans-stmt.h b/gcc/fortran/trans-stmt.h index 0b167b9..d7307df 100644 --- a/gcc/fortran/trans-stmt.h +++ b/gcc/fortran/trans-stmt.h @@ -29,7 +29,6 @@ tree gfc_trans_code (gfc_code *); tree gfc_trans_assign (gfc_code *); tree gfc_trans_pointer_assign (gfc_code *); tree gfc_trans_init_assign (gfc_code *); -tree gfc_get_proc_ptr_comp (gfc_se *, gfc_expr *); /* trans-stmt.c */ tree gfc_trans_cycle (gfc_code *); |