Sandra Loosemore wrote:
As noted in the issue, the C++ front end has deeper problems: […] Some real solution ought to be included as part of fixing PR118791.
okay.
gcc/c/ […] gcc/cp/ […] gcc/fortran/ PR middle-end/118839 * trans-openmp.cc (gfc_trans_omp_declare_variant): Error if variant is the same as base.
LGTM. Thanks for the patch! Tobias