2015-01-11 Janus Weil <janus@gcc.gnu.org>
PR fortran/58023
* resolve.c (resolve_fl_derived0): Set error flag if problems with the
interface of a procedure-pointer component were detected.
2015-01-11 Janus Weil <janus@gcc.gnu.org>
PR fortran/58023
* gfortran.dg/proc_ptr_comp_42.f90: New.
From-SVN: r219439
+2015-01-11 Janus Weil <janus@gcc.gnu.org>
+
+ PR fortran/58023
+ * resolve.c (resolve_fl_derived0): Set error flag if problems with the
+ interface of a procedure-pointer component were detected.
+
2015-01-11 Janus Weil <janus@gcc.gnu.org>
PR fortran/64508
{
gfc_symbol *ifc = c->ts.interface;
- if (!sym->attr.vtype
- && !check_proc_interface (ifc, &c->loc))
- return false;
+ if (!sym->attr.vtype && !check_proc_interface (ifc, &c->loc))
+ {
+ c->tb->error = 1;
+ return false;
+ }
if (ifc->attr.if_source || ifc->attr.intrinsic)
{
+2015-01-11 Janus Weil <janus@gcc.gnu.org>
+
+ PR fortran/58023
+ * gfortran.dg/proc_ptr_comp_42.f90: New.
+
2015-01-11 Janus Weil <janus@gcc.gnu.org>
PR fortran/64508
--- /dev/null
+! { dg-do compile }
+!
+! PR 58023: [F03] ICE on invalid with bad PPC declaration
+!
+! Contributed by Andrew Benson <abensonca@gmail.com>
+
+ implicit none
+
+ type :: sfd
+ procedure(mr), pointer :: mr2 ! { dg-error "must be explicit" }
+ end type
+
+ type(sfd):: d
+ print *, d%mr2()
+
+end