https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127734
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> ---
cp/decl.c's omp_declare_variant_finalize_one contains:
if (simd)
{
TREE_VALUE (simd)
= c_omp_declare_simd_clauses_to_numbers (DECL_ARGUMENTS (decl),
OMP_TS_PROPERTIES (simd));
/* FIXME, adjusting simd args unimplemented. */
return true;
}
If one removes the "return true" the attributes work.
The FIXME and the 'return true' are from commit
r10-4230-g42ceec0607f323
cp-tree.h (omp_declare_variant_finalize, [...]): Declare.
The c_omp_... call was added in commit
r14-6719-g9f9b3d67323ac6
OpenMP: Use enumerators for names of trait-sets and traits
* * *
> following to avoid an ICE (-> PR 127723):
This fix is now in mainline (see cited PR)
> NOTE 2: I have not checked Fortran (yet).
Fortran had a different issue, will be fixed by the same PR.