Hi Jakub, hello all,
Jakub Jelinek wrote:
As Marek mentioned in
https://gcc.gnu.org/pipermail/gcc-patches/2025-November/700733.html
we have discovered a problem with C++26 vs. OpenMP/OpenACC array sections.
OpenMP/OpenACC array sections, generally expr[expr:expr] or
expr[expr:expr:expr] (OpenMP 5.0+ feature still not implemented)
A patch for this is pending review,
cf.https://gcc.gnu.org/pipermail/gcc-patches/2023-September/629422.html
I've raised this on omp-lang last night, we'll see what results from that,
I think there is currently some uncertainity also about
a[::std::min(0, 1):::std:max(4, 5)]
but I think GCC will reject this unless it is
a[::std::min(0, 1): ::std:max(4, 5)]
A similar issue with C++, albeit already before C++26 for the
"lb : ub" range-base parameter list items, that default to
lb = 1 (1st element) and ub = omp_num_args (last argument),
e.g. adjust_args(nothing: : ) vs. adjust_args(nothing:: )
That one is tracked in specification issue #4498, but
also hasn't been resolved so far.
Tobias