aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/module.c
diff options
context:
space:
mode:
authorJanus Weil <janus@gcc.gnu.org>2010-06-16 14:54:54 +0200
committerJanus Weil <janus@gcc.gnu.org>2010-06-16 14:54:54 +0200
commit3e15518bc4c70b541b667e9f6bf3dfb80053b5ae (patch)
treee59b7cfa05176efde69a8f830c9e84a169966a62 /gcc/fortran/module.c
parentfe27aa8bc46f9ce5324d19e1102901639274c578 (diff)
downloadgcc-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/module.c')
-rw-r--r--gcc/fortran/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c
index 5cd760b..335fd27 100644
--- a/gcc/fortran/module.c
+++ b/gcc/fortran/module.c
@@ -3324,7 +3324,7 @@ mio_typebound_proc (gfc_typebound_proc** proc)
if (iomode == IO_INPUT)
{
- *proc = gfc_get_typebound_proc ();
+ *proc = gfc_get_typebound_proc (NULL);
(*proc)->where = gfc_current_locus;
}
gcc_assert (*proc);