On Tue, 2 May 2023 12:29:22 +0200 Tobias Burnus wrote: > On 29.04.23 12:57, Julian Brown wrote: > > This patch moves several tests introduced by the following patch: > > > > https://gcc.gnu.org/pipermail/gcc-patches/2023-April/616939.html > > > > I believe you intent this as git log entry. Can you add > ... commit r14-325-gcacf65d74463600815773255e8b82b4043432bd7 > as this makes looking at the git history easier. Added. > > into the proper location for OpenACC testing (thanks to Thomas for > > spotting my mistake!), and also fixes a few additional problems -- > > missing diagnostics for non-pointer attaches, and a case where a > > pointer was incorrectly dereferenced. Tests are also adjusted for > > vector-length warnings on nvidia accelerators. > > > > Tested with offloading to nvptx. OK? > > > > 2023-04-29 Julian Brown > > > > PR fortran/109622 > > > > gcc/fortran/ > > * trans-openmp.cc (gfc_trans_omp_clauses): Add diagnostic for > > non-pointer/non-allocatable attach/detach. Remove > > dereference for pointer-to-scalar derived type component > > attach/detach. > > In general, we prefer resolution-time diagnostic to tree-translation > diagnostic, unless there is a good reason to do the latter. > At a glance, it should be even sufficient to have a single diagnostic > instead of two when placed into openmp.cc. How does this version look? Retested with offloading to nvptx. Thanks, Julian