]> 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>
Thu, 27 May 2021 18:25:33 +0000 (14:25 -0400)
commitfc3fdf0f2196e805a3a43ccb73595c33673670f3
tree4b5f049eec6ca217a40b94508be4f347a5f7ec5a
parentdb79713150f4f8b6ff3de81d00d92578679e0e65
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

gcc/cp/ChangeLog:

* tree.c (cp_walk_subtrees) <case STATIC_ASSERT>: New case.

gcc/testsuite/ChangeLog:

* g++.dg/cpp0x/static_assert17.C: New test.
gcc/cp/tree.c
gcc/testsuite/g++.dg/cpp0x/static_assert17.C [new file with mode: 0644]