aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/decl.c
diff options
context:
space:
mode:
authorJanus Weil <janus@gcc.gnu.org>2016-11-13 12:12:05 +0100
committerJanus Weil <janus@gcc.gnu.org>2016-11-13 12:12:05 +0100
commitf9d49cd1d03747a338d40afdead14b80b5cd7df3 (patch)
tree568ee7d6f8ce51486b69b35ee40705bd76793bc0 /gcc/fortran/decl.c
parent9cbf8673106e24e33f2ab2ed9a054c3a759d84e1 (diff)
downloadgcc-f9d49cd1d03747a338d40afdead14b80b5cd7df3.zip
gcc-f9d49cd1d03747a338d40afdead14b80b5cd7df3.tar.gz
gcc-f9d49cd1d03747a338d40afdead14b80b5cd7df3.tar.bz2
re PR fortran/60952 ([F03] Problem using "end" as a type-bound procedure and contained procedure)
2016-11-13 Janus Weil <janus@gcc.gnu.org> PR fortran/60952 * decl.c (match_procedure_in_type): Apply the FL_PROCEDURE attribute to the target procedure. 2016-11-13 Janus Weil <janus@gcc.gnu.org> PR fortran/60952 * gfortran.dg/typebound_proc_34.f90: New test. From-SVN: r242352
Diffstat (limited to 'gcc/fortran/decl.c')
-rw-r--r--gcc/fortran/decl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c
index 4f5c0cf..21eaafe 100644
--- a/gcc/fortran/decl.c
+++ b/gcc/fortran/decl.c
@@ -9624,6 +9624,8 @@ match_procedure_in_type (void)
false))
return MATCH_ERROR;
gfc_set_sym_referenced (stree->n.tb->u.specific->n.sym);
+ gfc_add_flavor(&stree->n.tb->u.specific->n.sym->attr, FL_PROCEDURE,
+ target, &stree->n.tb->u.specific->n.sym->declared_at);
if (gfc_match_eos () == MATCH_YES)
return MATCH_YES;