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

--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Marek Polacek
<mpola...@gcc.gnu.org>:

https://gcc.gnu.org/g:605803cf4089955c39dcbed97b343550581b8eed

commit r13-9305-g605803cf4089955c39dcbed97b343550581b8eed
Author: Marek Polacek <pola...@redhat.com>
Date:   Fri Jan 10 17:29:36 2025 -0500

    c++: ICE with variable template and [[deprecated]] [PR110031]

    lookup_and_finish_template_variable already has and uses the complain
    parameter but it is not passing it down to mark_used so we got the
    default tf_warning_or_error, which causes various problems when
    lookup_and_finish_template_variable gets called with complain=tf_none.

            PR c++/110031

    gcc/cp/ChangeLog:

            * pt.cc (lookup_and_finish_template_variable): Pass complain to
            mark_used.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp1z/inline-var11.C: New test.

Reply via email to