https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79866
--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- Test which does not fail: --- ../_clean/gcc/testsuite/gfortran.dg/coarray_event_2.f08 1970-01-01 01:00:00.000000000 +0100 +++ gcc/testsuite/gfortran.dg/coarray_event_2.f08 2017-06-29 16:16:35.000000000 +0200 @@ -0,0 +1,15 @@ +! { dg-do compile } +! { dg-options "-fcoarray=lib -lcaf_single" } + +! Check that pr70696 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" } + + ! exchange must not be called or the link problem before the patch + ! does not occur. +contains + subroutine exchange + event post (x[1]) ! { dg-error "Syntax error in EVENT POST statement at .1." } + end subroutine +end