aboutsummaryrefslogtreecommitdiff
path: root/gcc/c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2024-03-04 12:35:18 -0500
committerMarek Polacek <polacek@redhat.com>2024-03-07 09:48:44 -0500
commit9f915684624413f96e1a5ffada398ccd1c533e38 (patch)
treec3bcf810d50b41478c6f7c06db0fa7b0179206aa /gcc/c
parente2e4b603ced350447a8d0e2c5f4d419b8f69b6a6 (diff)
downloadgcc-9f915684624413f96e1a5ffada398ccd1c533e38.zip
gcc-9f915684624413f96e1a5ffada398ccd1c533e38.tar.gz
gcc-9f915684624413f96e1a5ffada398ccd1c533e38.tar.bz2
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.
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions