aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-openmp.cc
diff options
context:
space:
mode:
authorTobias Burnus <tburnus@baylibre.com>2025-02-05 08:44:41 +0100
committerTobias Burnus <tburnus@baylibre.com>2025-02-05 08:44:41 +0100
commit3a5882707df50ed29905b3c47cbaa0868ea248c9 (patch)
tree95d40d87afe9d3fa9008dcca1696d8e4a4086070 /gcc/fortran/trans-openmp.cc
parente41a5a2a0832509fa1c0b7cab0c8001fadbd23d4 (diff)
downloadgcc-3a5882707df50ed29905b3c47cbaa0868ea248c9.zip
gcc-3a5882707df50ed29905b3c47cbaa0868ea248c9.tar.gz
gcc-3a5882707df50ed29905b3c47cbaa0868ea248c9.tar.bz2
fortran/trans-openmp.cc: Use the correct member in gfc_omp_namelist [PR118745]
gcc/fortran/ChangeLog: PR fortran/118745 * trans-openmp.cc (gfc_trans_omp_declare_variant): Use append_args_list in the condition for the append_arg location.
Diffstat (limited to 'gcc/fortran/trans-openmp.cc')
-rw-r--r--gcc/fortran/trans-openmp.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/trans-openmp.cc b/gcc/fortran/trans-openmp.cc
index a593f5a..e29ef85 100644
--- a/gcc/fortran/trans-openmp.cc
+++ b/gcc/fortran/trans-openmp.cc
@@ -8839,7 +8839,7 @@ gfc_trans_omp_declare_variant (gfc_namespace *ns)
last_arg->next = extra_arg;
else if (extra_arg)
variant_proc_sym->formal = extra_arg;
- locus *loc = (odv->adjust_args_list
+ locus *loc = (odv->append_args_list
? &odv->append_args_list->where : &odv->where);
int nextra_arg = 0;
for (; extra_arg; extra_arg = extra_arg->next)