diff options
author | Cesar Philippidis <cesar@codesourcery.com> | 2018-06-13 07:29:04 -0700 |
---|---|---|
committer | Cesar Philippidis <cesar@gcc.gnu.org> | 2018-06-13 07:29:04 -0700 |
commit | adc41ebeab0c027cce9e1fb1e1356a66d89aeb57 (patch) | |
tree | bd1835f282c7e045be847181e57b432deb62a160 /gcc/fortran/openmp.c | |
parent | c9492649182de9b36eaa71a49b96143e551afc54 (diff) | |
download | gcc-adc41ebeab0c027cce9e1fb1e1356a66d89aeb57.zip gcc-adc41ebeab0c027cce9e1fb1e1356a66d89aeb57.tar.gz gcc-adc41ebeab0c027cce9e1fb1e1356a66d89aeb57.tar.bz2 |
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
Diffstat (limited to 'gcc/fortran/openmp.c')
-rw-r--r-- | gcc/fortran/openmp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/fortran/openmp.c b/gcc/fortran/openmp.c index 5c13312..97d6e78 100644 --- a/gcc/fortran/openmp.c +++ b/gcc/fortran/openmp.c @@ -2177,8 +2177,7 @@ gfc_match_oacc_wait (void) { if (el->expr == NULL) { - gfc_error ("Invalid argument to !$ACC WAIT at %L", - &wait_list->expr->where); + gfc_error ("Invalid argument to !$ACC WAIT at %C"); return MATCH_ERROR; } |