]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: clear tf_partial et al in instantiate_template [PR108960]
authorMarek Polacek <polacek@redhat.com>
Tue, 25 Jul 2023 18:36:47 +0000 (14:36 -0400)
committerMarek Polacek <polacek@redhat.com>
Tue, 25 Jul 2023 20:31:20 +0000 (16:31 -0400)
commit39004608e79b68fe7615a026ce58dea646dba20e
tree8b2f29ed21399d2f0f9632f7ca58e438b80d0062
parent28e3d361ba0cfa7ea2f90706159a144eaf4b650e
c++: clear tf_partial et al in instantiate_template [PR108960]

In <https://gcc.gnu.org/pipermail/gcc-patches/2023-February/612929.html>
we concluded that we might clear all flags except tf_warning_or_error
when performing instantiate_template.

PR c++/108960

gcc/cp/ChangeLog:

* pt.cc (lookup_and_finish_template_variable): Don't clear tf_partial
here.
(instantiate_template): Reset all complain flags except
tf_warning_or_error.
gcc/cp/pt.cc