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

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

https://gcc.gnu.org/g:9f915684624413f96e1a5ffada398ccd1c533e38

commit r14-9364-g9f915684624413f96e1a5ffada398ccd1c533e38
Author: Marek Polacek <pola...@redhat.com>
Date:   Mon Mar 4 12:35:18 2024 -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