Commit 370d975d by Dominique d'Humieres Committed by Dominique d'Humieres

re PR fortran/79866 (diagnostics: typo in "Variable %s at %L of type EVENT_TYPE")

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
parent 73977c47
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
* symbol.c (check_conflict): Add missing "conflicts".
......
......@@ -14525,7 +14525,7 @@ resolve_symbol (gfc_symbol *sym)
&& !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
* gfortran.dg/namelist_3.f90: Adjust the dg-error string.
* gfortran.dg/pointer_intent_2.f90: Likewise.
......
! { 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment