]> git.ipfire.org Git - thirdparty/gcc.git/commit
OpenMP/C++: Fix declare variant with reference-returning functions
authorTobias Burnus <tburnus@baylibre.com>
Thu, 31 Oct 2024 10:28:57 +0000 (11:28 +0100)
committerTobias Burnus <tburnus@baylibre.com>
Thu, 31 Oct 2024 10:36:04 +0000 (11:36 +0100)
commitf011f8908182fd05ddd9a34881507b8584c44fb2
treef8c0d51a4921a3cbaa6ded1eeec0b22559dbfe86
parenta57c16e50d478cc413e3e530db21de693e4eb2ae
OpenMP/C++: Fix declare variant with reference-returning functions

gcc/cp/ChangeLog:

* decl.cc (omp_declare_variant_finalize_one): Strip indirect ref
around variant-function call when processing a variant.

gcc/testsuite/ChangeLog:

* g++.dg/gomp/declare-variant-9.C: New test.
gcc/cp/decl.cc
gcc/testsuite/g++.dg/gomp/declare-variant-9.C [new file with mode: 0644]