Paul-Antoine Arras wrote:
This fixes a fallout of r16-4540-g80af807e52e4f4 that caused undefined behaviour.PR fortran/122439 gcc/fortran/ChangeLog: * openmp.cc (gfc_resolve_omp_context_selector): Skip selectors that have OMP_TRAIT_INVALID.
LGTM.Thanks to you for the patch – and to Filip for running an UBSAN instrumented GCC + reporting the found bugs!
Tobias
