]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: omp declare variant tweak
authorJason Merrill <jason@redhat.com>
Wed, 12 Feb 2025 17:47:17 +0000 (18:47 +0100)
committerJason Merrill <jason@redhat.com>
Thu, 13 Feb 2025 21:52:57 +0000 (22:52 +0100)
commit32d3e63ebb2aac4208a522fcd3477932d72eacfc
tree7a15535b0eec2e1e693f1a4c2bbc242a9b6e13e0
parentcdb4d27a4c2786cf1b1b0eb1872eac6a5f931578
c++: omp declare variant tweak

In r15-6707 I changed this function to use build_stub_object to more simply
produce the right type, but it occurs to me that forward_parm would be even
better, specifically for the diagnostic.

This changes nothing with respect to PR118791.

gcc/cp/ChangeLog:

* decl.cc (omp_declare_variant_finalize_one): Use forward_parm.

gcc/testsuite/ChangeLog:

* g++.dg/gomp/declare-variant-3.C: Adjust diagnostic.
* g++.dg/gomp/declare-variant-5.C: Adjust diagnostic.
gcc/cp/decl.cc
gcc/testsuite/g++.dg/gomp/declare-variant-3.C
gcc/testsuite/g++.dg/gomp/declare-variant-5.C