[Bug c++/123659] [reflection] Cannot splice a pack of type reflections
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Feb 7 10:10:35 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123659
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:04f84457772946904f5882ef1b528fe1766ef006
commit r16-7381-g04f84457772946904f5882ef1b528fe1766ef006
Author: Jakub Jelinek <jakub@redhat.com>
Date: Sat Feb 7 11:07:28 2026 +0100
c++: Handle SPLICE_SCOPE in cp_walk_subtrees [PR123659]
SPLICE_SCOPE is a TYPE_P, but didn't have its SPLICE_SCOPE_EXPR
walked by cp_walk_tree, so the following testcase has been rejected
because it didn't find a pack in it.
SPLICE_EXPR is fine, as it is tcc_expression and walk_tree by default
walks all the tcc_exception operands for unknown trees.
2026-02-07 Jakub Jelinek <jakub@redhat.com>
PR c++/123659
* tree.cc (cp_walk_subtrees): Handle SPLICE_SCOPE.
* g++.dg/reflect/splice9.C: New test.
More information about the Gcc-bugs
mailing list