]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: don't treat member var as var template
authorJason Merrill <jason@redhat.com>
Tue, 29 Jun 2021 19:11:25 +0000 (15:11 -0400)
committerJason Merrill <jason@redhat.com>
Tue, 29 Jun 2021 20:50:23 +0000 (16:50 -0400)
commit362347c5a4e56d48c9af7ed7d9cc3feff0c2d219
tree552cb6817f7e21bf5286bb80dc7dfb1e7f2cdc4c
parent13c906f43f473ee9ff16d80590789d719f2190a4
c++: don't treat member var as var template

While looking at a partial instantiation issue I noticed that we were
wrongly hitting the partial instantiation code when instantiating a static
data member of a class template.  I don't think this broke anything, but we
don't need to do that (small) extra work.

gcc/cp/ChangeLog:

* pt.c (instantiate_decl): Only consider partial specializations of
actual variable templates.
gcc/cp/pt.c