https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113638
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:0b786ff38ab398087820d91241e030a28c451df9 commit r14-8726-g0b786ff38ab398087820d91241e030a28c451df9 Author: Jason Merrill <ja...@redhat.com> Date: Thu Feb 1 16:54:39 2024 -0500 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.