]> git.ipfire.org Git - thirdparty/gcc.git/commit
OpenMP/C++: Use STRIP_REFERENCE_REF to fix declare variant with reference-returning...
authorTobias Burnus <tburnus@baylibre.com>
Thu, 31 Oct 2024 11:37:46 +0000 (12:37 +0100)
committerTobias Burnus <tburnus@baylibre.com>
Thu, 31 Oct 2024 11:37:46 +0000 (12:37 +0100)
commitf7ae087ef0132b01c3a2c04932058b996ebda18d
treefdf99ba3ea5658320046bcf003ccacfa96292a48
parenteb828a1e380e7bb5a708c899081541ee9130ff87
OpenMP/C++: Use STRIP_REFERENCE_REF to fix declare variant with reference-returning functions

As Jakub suggested, use STRIP_REFERENCE_REF instead of doing it manually
as r15-4800-geb828a1e380e7b did.

gcc/cp/ChangeLog:

* decl.cc (omp_declare_variant_finalize_one): Use STRIP_REFERENCE_REF
instead of doing it manually.
gcc/cp/decl.cc