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

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-16 branch has been updated by Jakub Jelinek
<[email protected]>:

https://gcc.gnu.org/g:c53fce1d43d1629e5f5426efbf4ac1c0ce4c3c84

commit r16-8911-gc53fce1d43d1629e5f5426efbf4ac1c0ce4c3c84
Author: Jakub Jelinek <[email protected]>
Date:   Thu May 7 15:53:52 2026 +0200

    c++: Don't check for consteval-only uses inside of USING_STMT [PR125184]

    I think a USING_STMT operand shouldn't count as consteval-only use.

    2026-05-07  Jakub Jelinek  <[email protected]>

            PR c++/125184
            * reflect.cc (check_out_of_consteval_use_r): Don't walk children of
            USING_STMTs.

            * g++.dg/reflect/using3.C: New test.

    Reviewed-by: Jason Merrill <[email protected]>
    (cherry picked from commit d6fc88f22812cc74ddb36871e01f3d56ef383334)

Reply via email to