2017-07-03 Dominique d'Humieres <dominiq@lps.ens.fr>
PR fortran/79866
* resolve.c (resolve_symbol): Fix typo.
PR testsuite/79866
* gfortran.dg/coarray_event_2.f08: New test.
From-SVN: r249934
+2017-07-03 Dominique d'Humieres <dominiq@lps.ens.fr>
+
+ PR fortran/79866
+ * resolve.c (resolve_symbol): Fix typo.
+
2017-07-03 Dominique d'Humieres <dominiq@lps.ens.fr>
PR fortran/79843
&& !sym->attr.codimension && !sym->ts.u.derived->attr.coarray_comp)
{
gfc_error ("Variable %s at %L of type EVENT_TYPE or with subcomponent of "
- "type LOCK_TYPE must be a coarray", sym->name,
+ "type EVENT_TYPE must be a coarray", sym->name,
&sym->declared_at);
return;
}
+2017-07-03 Dominique d'Humieres <dominiq@lps.ens.fr>
+
+ PR testsuite/79866
+ * gfortran.dg/coarray_event_2.f08: New test.
+
2017-07-03 Dominique d'Humieres <dominiq@lps.ens.fr>
PR testsuite/79843
--- /dev/null
+! { dg-do compile }
+! { dg-options "-fcoarray=lib -lcaf_single" }
+
+! Check that pr79866 is really fixed.
+
+ use iso_fortran_env
+ type(event_type) :: x ! { dg-error "of type EVENT_TYPE or with subcomponent of type EVENT_TYPE must be a coarray" }
+
+contains
+ subroutine exchange
+ event post (x[1]) ! { dg-error "Syntax error in EVENT POST statement at .1." }
+ end subroutine
+end