Dear Jakub, dear Sandra, hello world,

Jakub Jelinek wrote:
Starting with OpenMP 5.2, the spec explicitly says differently for C++:

"The function variant is determined by base language standard name lookup
rules ([basic.lookup]) of variant-name using the argument types at the call
site..."
I think https://github.com/OpenMP/spec/issues/1852 should be reopened for
that, that call site part is an error.

I have filed a new OpenMP issue about this C++ issue:
https://github.com/OpenMP/spec/issues/4583

For completeness, for C++ template variant resulution
and return types, see PR118488 + OpenMP spec issue 4446.

(Sorry, to bystanders: OpenMP issues are unfortunately not
publicly accessible.)

* * *

For handling the 'simd' trait with declare variant,
I created the PR121672, https://gcc.gnu.org/PR121672

I hope it captures all what is required for this task
and readily available.

* * *

Regarding the patches in this thread: I think the cleanup
work in patches 1 and 3 is fine (and I approved the two).

For the 'simd' trait (Patch 2), adding some 'sorry' seem
to be sensible - and I think for those we can and should
keep using PR121630 as tracking bug.

See Sandra's newer patch in this thread, which adds a sorry.

Tobias

Reply via email to