aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/interface.c
diff options
context:
space:
mode:
authorTobias Burnus <burnus@net-b.de>2012-02-18 13:31:42 +0100
committerTobias Burnus <burnus@gcc.gnu.org>2012-02-18 13:31:42 +0100
commitd2c5dbf264631433ae44a208e69de8e1ad74f2a8 (patch)
treec18e46c14d2c62b59b5f706b2be9d3822961aaf2 /gcc/fortran/interface.c
parent141a25c268513da985b10d374df46f006412a0c7 (diff)
downloadgcc-d2c5dbf264631433ae44a208e69de8e1ad74f2a8.zip
gcc-d2c5dbf264631433ae44a208e69de8e1ad74f2a8.tar.gz
gcc-d2c5dbf264631433ae44a208e69de8e1ad74f2a8.tar.bz2
re PR fortran/52295 (Allow internal procedure in generic interfaces)
2012-02-18 Tobias Burnus <burnus@net-b.de> PR fortran/52295 * interface.c (check_interface0): Internal procs in generic interfaces are allowed in Fortran 2008. 2012-02-18 Tobias Burnus <burnus@net-b.de> PR fortran/52295 * gfortran.dg/interface_35.f90: Use -std=f2003. * gfortran.dg/proc_ptr_comp_20.f90: Remove dg-warning. * gfortran.dg/interface_assignment_4.f90: Ditto. * gfortran.dg/bessel_1.f90: Ditto. * gfortran.dg/func_result_6.f90: Ditto. * gfortran.dg/hypot_1.f90: Ditto. * gfortran.dg/proc_ptr_comp_21.f90: Ditto. From-SVN: r184372
Diffstat (limited to 'gcc/fortran/interface.c')
-rw-r--r--gcc/fortran/interface.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/fortran/interface.c b/gcc/fortran/interface.c
index 16a2be9..e1f0cb6 100644
--- a/gcc/fortran/interface.c
+++ b/gcc/fortran/interface.c
@@ -1292,9 +1292,10 @@ check_interface0 (gfc_interface *p, const char *interface_name)
return 1;
}
+ /* F2003, C1207. F2008, C1207. */
if (p->sym->attr.proc == PROC_INTERNAL
- && gfc_notify_std (GFC_STD_GNU, "Extension: Internal procedure '%s' "
- "in %s at %L", p->sym->name, interface_name,
+ && gfc_notify_std (GFC_STD_F2008, "Fortran 2008: Internal procedure "
+ "'%s' in %s at %L", p->sym->name, interface_name,
&p->sym->declared_at) == FAILURE)
return 1;
}