https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127995

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tobias Burnus <[email protected]>:

https://gcc.gnu.org/g:8d5bc2c194466bfc90bc93b88a26081cb1e4d677

commit r17-5411-g8d5bc2c194466bfc90bc93b88a26081cb1e4d677
Author: Tobias Burnus <[email protected]>
Date:   Tue Oct 20 15:41:37 2026 +0200

    OpenMP simd's 'scaled': Fortran - janitorial fixes |
gomp/declare-variant-7.c: Add xfail for C++ [PR128032/127995/127734]

    Silence UBSAN warning for uninitalized memory that is only written
    to but is also passed around (for the unreachable reading mode path)
    by '{}' initializing the gfc_typespec variable in fortran/module.cc.

    Fix safelen >= simdlen checking by correctly checking both expressions
    for const-scalar-int-ness in fortran/openmp.cc.

    As for gomp/declare-variant-5.c in commit r17-5124-g36d99b4873e675,
    do the same for ...-7.c: Commit r17-5084-g9759f4fa7d0177 fixed some
    issues related to the simd trait, which in turn causes this testcase
    to fail with C++.
    This commit silents those with dg-bogus + xfail until properly fixed,
    cf. PR.

    gcc/fortran/ChangeLog:

            PR fortran/128032
            PR fortran/127995
            * module.cc (mio_omp_declare_simd_clauses): {} initialize a var.
            * openmp.cc (resolve_omp_clauses): Fix safelen >= simdlen
            const-scalar-int-ness check.

    gcc/testsuite/ChangeLog:

            PR c++/127734
            * c-c++-common/gomp/declare-variant-7.c: Add dg-bogus + xfail to
            silence C++ fails.

Reply via email to