]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: parameter pack inside static_assert [PR99893]
authorPatrick Palka <ppalka@redhat.com>
Thu, 27 May 2021 18:25:33 +0000 (14:25 -0400)
committerPatrick Palka <ppalka@redhat.com>
Fri, 8 Apr 2022 13:36:56 +0000 (09:36 -0400)
commit2837450c4e8f5f241db5519977ab24c1f871258f
tree12a52735f9b9cc45be8846e39912e3af0d40befb
parent542c30dc4d220f6d2138e55d5fb8e1529339badf
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)
gcc/cp/tree.c
gcc/testsuite/g++.dg/cpp0x/static_assert17.C [new file with mode: 0644]