aboutsummaryrefslogtreecommitdiff
path: root/libphobos/src
diff options
context:
space:
mode:
authorTobias Burnus <tburnus@baylibre.com>2025-01-17 14:25:18 +0100
committerTobias Burnus <tburnus@baylibre.com>2025-01-17 14:25:18 +0100
commit5e91be6f8ce978e1d30c8a958072545002168ed1 (patch)
tree1432b7582c2799d02ebd2a34f8cd7f2ffdb2b138 /libphobos/src
parentf3ccc57e5f044031a1b07e79330de9220e93afe7 (diff)
downloadgcc-5e91be6f8ce978e1d30c8a958072545002168ed1.zip
gcc-5e91be6f8ce978e1d30c8a958072545002168ed1.tar.gz
gcc-5e91be6f8ce978e1d30c8a958072545002168ed1.tar.bz2
OpenMP/C++: Fix declare_variant's 'adjust_args' if there is a 'this' pointer [PR118321]
The adjust_args clause is internally store as the i-th argument to the function, which fails if hidden arguments come before. This commit handles the C++ 'this' pointer by shifting the internal arg index by one. PR fortran/118321 gcc/cp/ChangeLog: * decl.cc (omp_declare_variant_finalize_one): Shift adjust_args index by one for non-static class function's 'this' pointer. gcc/testsuite/ChangeLog: * g++.dg/gomp/adjust-args-4.C: New test.
Diffstat (limited to 'libphobos/src')
0 files changed, 0 insertions, 0 deletions