SUNDAY, APRIL 19, 2026 GCC DIGEST · OPEN-SOURCE SYSTEMS DAILY VOL. 1 · NO. 109
Late Edition · APRIL 19, 2026 · VOL. 1 · NO. 109
The GCC Digest
— A Daily Record of the GNU Compiler Collection —
c++ Impact 5 / 10

C++: Reject splicing of function parameters in reflection.

Disallows splicing of function parameters in C++ reflection, enforcing the standard's restrictions.

This commit enforces the restriction against splicing function parameters in C++ reflection, as function parameters are not listed as valid targets for splicing in the standard. The compiler now diagnoses such attempts and suggests using variable_of when applicable. Several test cases are adjusted to reflect this change.

Filed Under: C++reflectionsplicingstandard compliance