diff options
author | Janus Weil <janus@gcc.gnu.org> | 2010-06-16 14:54:54 +0200 |
---|---|---|
committer | Janus Weil <janus@gcc.gnu.org> | 2010-06-16 14:54:54 +0200 |
commit | 3e15518bc4c70b541b667e9f6bf3dfb80053b5ae (patch) | |
tree | e59b7cfa05176efde69a8f830c9e84a169966a62 /gcc/fortran/symbol.c | |
parent | fe27aa8bc46f9ce5324d19e1102901639274c578 (diff) | |
download | gcc-3e15518bc4c70b541b667e9f6bf3dfb80053b5ae.zip gcc-3e15518bc4c70b541b667e9f6bf3dfb80053b5ae.tar.gz gcc-3e15518bc4c70b541b667e9f6bf3dfb80053b5ae.tar.bz2 |
re PR fortran/44549 ([OOP][F2008] Type-bound procedure: bogus error from list after PROCEDURE)
2010-06-16 Janus Weil <janus@gcc.gnu.org>
PR fortran/44549
* gfortran.h (gfc_get_typebound_proc): Modified Prototype.
* decl.c (match_procedure_in_type): Give a unique gfc_typebound_proc
structure to each procedure in a procedure list.
* module.c (mio_typebound_proc): Add NULL argument to
'gfc_get_typebound_proc'.
* symbol.c (gfc_get_typebound_proc): Add a new argument, which is used
to initialize the new structure.
2010-06-16 Janus Weil <janus@gcc.gnu.org>
PR fortran/44549
* gfortran.dg/typebound_proc_16.f03: New.
From-SVN: r160834
Diffstat (limited to 'gcc/fortran/symbol.c')
-rw-r--r-- | gcc/fortran/symbol.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/fortran/symbol.c b/gcc/fortran/symbol.c index 049e4a7..11a0395 100644 --- a/gcc/fortran/symbol.c +++ b/gcc/fortran/symbol.c @@ -4591,12 +4591,14 @@ gfc_check_symbol_typed (gfc_symbol* sym, gfc_namespace* ns, list and marked `error' until symbols are committed. */ gfc_typebound_proc* -gfc_get_typebound_proc (void) +gfc_get_typebound_proc (gfc_typebound_proc *tb0) { gfc_typebound_proc *result; tentative_tbp *list_node; result = XCNEW (gfc_typebound_proc); + if (tb0) + *result = *tb0; result->error = 1; list_node = XCNEW (tentative_tbp); |