gcc/testsuite/ChangeLog:
PR fortran/98763
* gfortran.dg/gomp/task-detach-1.f90: Use integer(1) to avoid
missing diagnostic issues with c_intptr_t == default integer kind.
(cherry picked from commit
a95538b6c5a9ea480e341da9ca8fbf201417dba5)
+2021-01-22 Kwok Cheung Yeung <kcy@codesourcery.com>
+
+ Backport from mainline
+ 2021-01-20 Tobias Burnus <tobias@codesourcery.com>
+
+ PR fortran/98763
+ * gfortran.dg/gomp/task-detach-1.f90: Use integer(1) to avoid
+ missing diagnostic issues with c_intptr_t == default integer kind.
+
2021-01-22 Kwok Cheung Yeung <kcy@codesourcery.com>
Backport from mainline
integer, parameter :: omp_event_handle_kind = c_intptr_t
integer (kind=omp_event_handle_kind) :: x, y
- integer :: z
+ integer(1) :: z
!$omp task detach(x) detach(y) ! { dg-error "Failed to match clause at \\\(1\\\)" }
!$omp end task ! { dg-error "Unexpected !\\\$OMP END TASK statement at \\\(1\\\)" }