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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Jason Merrill <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:5fdb0145fb9499f5db9e27f775895ce4a39215e4

commit r15-9533-g5fdb0145fb9499f5db9e27f775895ce4a39215e4
Author: Jason Merrill <ja...@redhat.com>
Date:   Wed Apr 16 12:02:58 2025 -0400

    c++: templates, attributes, #pragma target [PR114772]

    Since r12-5426 apply_late_template_attributes suppresses various global
    state to avoid applying active pragmas to earlier declarations; we also
    need to override target_option_current_node.

            PR c++/114772
            PR c++/101180

    gcc/cp/ChangeLog:

            * pt.cc (apply_late_template_attributes): Also override
            target_option_current_node.

    gcc/testsuite/ChangeLog:

            * g++.dg/ext/pragma-target2.C: New test.

Reply via email to