Commit adc41ebe by Cesar Philippidis Committed by Cesar Philippidis

re PR fortran/85702 ([openacc] ICE in gfc_format_decoder, at fortran/error.c:943)

PR fortran/85702

	gcc/fortran/
	* openmp.c (gfc_match_oacc_wait): Use %C to report error location.

	gcc/testsuite/
	* gfortran.dg/goacc/pr85702.f90: New test.

From-SVN: r261550
parent c9492649
2018-06-13 Cesar Philippidis <cesar@codesourcery.com>
PR fortran/85702
* openmp.c (gfc_match_oacc_wait): Use %C to report error location.
2018-06-12 David Malcolm <dmalcolm@redhat.com> 2018-06-12 David Malcolm <dmalcolm@redhat.com>
PR other/69968 PR other/69968
......
...@@ -2177,8 +2177,7 @@ gfc_match_oacc_wait (void) ...@@ -2177,8 +2177,7 @@ gfc_match_oacc_wait (void)
{ {
if (el->expr == NULL) if (el->expr == NULL)
{ {
gfc_error ("Invalid argument to !$ACC WAIT at %L", gfc_error ("Invalid argument to !$ACC WAIT at %C");
&wait_list->expr->where);
return MATCH_ERROR; return MATCH_ERROR;
} }
......
2018-06-13 Cesar Philippidis <cesar@codesourcery.com>
PR fortran/85702
* gfortran.dg/goacc/pr85702.f90: New test.
2018-06-13 Eric Botcazou <ebotcazou@adacore.com> 2018-06-13 Eric Botcazou <ebotcazou@adacore.com>
* gcc.target/i386/pr86048.c: New test. * gcc.target/i386/pr86048.c: New test.
......
! PR fortran/85702
! { dg-do compile }
subroutine s
!$acc wait(*) ! { dg-error "Invalid argument to ..ACC WAIT" }
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