https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99893
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Patrick Palka <ppa...@gcc.gnu.org>: https://gcc.gnu.org/g:2837450c4e8f5f241db5519977ab24c1f871258f commit r11-9801-g2837450c4e8f5f241db5519977ab24c1f871258f Author: Patrick Palka <ppa...@redhat.com> Date: Thu May 27 14:25:33 2021 -0400 c++: parameter pack inside static_assert [PR99893] Here, we're not finding the parameter pack inside the static_assert because STATIC_ASSERT trees are tcc_exceptional, and we weren't explicitly walking them in cp_walk_subtrees. PR c++/99893 PR c++/103885 gcc/cp/ChangeLog: * tree.c (cp_walk_subtrees) <case STATIC_ASSERT>: New case. gcc/testsuite/ChangeLog: * g++.dg/cpp0x/static_assert17.C: New test. (cherry picked from commit fc3fdf0f2196e805a3a43ccb73595c33673670f3)