c++: variable template array of unknown bound [PR113638]
commit0b786ff38ab398087820d91241e030a28c451df9
authorJason Merrill <jason@redhat.com>
Thu, 1 Feb 2024 21:54:39 +0000 (1 16:54 -0500)
committerJason Merrill <jason@redhat.com>
Fri, 2 Feb 2024 03:21:02 +0000 (1 22:21 -0500)
treeac3c59058e730f4a2719e30fddd80e881d97aef2
parente0701f8f7b6dcddb299eb5345e510cf9ea419150
c++: variable template array of unknown bound [PR113638]

When we added variable templates, we didn't extend the VAR_HAD_UNKNOWN_BOUND
handling for class template static data members to handle them as well.

PR c++/113638

gcc/cp/ChangeLog:

* cp-tree.h: Adjust comment.
* pt.cc (instantiate_template): Set VAR_HAD_UNKNOWN_BOUND for
variable template.

gcc/testsuite/ChangeLog:

* g++.dg/cpp1y/var-templ-array1.C: New test.
gcc/cp/cp-tree.h
gcc/cp/pt.cc
gcc/testsuite/g++.dg/cpp1y/var-templ-array1.C [new file with mode: 0644]