]> gcc.gnu.org Git - gcc.git/commit
c++: ICE with variable template and [[deprecated]] [PR110031]
authorMarek Polacek <polacek@redhat.com>
Mon, 4 Mar 2024 17:35:18 +0000 (12:35 -0500)
committerMarek Polacek <polacek@redhat.com>
Thu, 7 Mar 2024 14:48:44 +0000 (09:48 -0500)
commit9f915684624413f96e1a5ffada398ccd1c533e38
treec3bcf810d50b41478c6f7c06db0fa7b0179206aa
parente2e4b603ced350447a8d0e2c5f4d419b8f69b6a6
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.
gcc/cp/pt.cc
gcc/testsuite/g++.dg/cpp1z/inline-var11.C [new file with mode: 0644]
This page took 0.054999 seconds and 6 git commands to generate.