https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125770
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-16 branch has been updated by Marek Polacek <[email protected]>: https://gcc.gnu.org/g:6db6adbe9ccab6f673a3be15caad5d7ad783002a commit r16-9115-g6db6adbe9ccab6f673a3be15caad5d7ad783002a Author: Marek Polacek <[email protected]> Date: Fri Jun 12 15:46:10 2026 -0400 c++: bogus error with meta::members_of [PR125770] mark_used produces the use of built-in parameter pack '__integer_pack' outside of a template error even when called with tf_none (in this case, from resolve_type_of_reflected_decl). I played with the idea of skipping all fndecl_built_in_p functions in resolve_type_of_reflected_decl but it doesn't seem to make any reasonable difference on compile time. PR c++/125770 gcc/cp/ChangeLog: * decl2.cc (mark_used): Check complain & tf_error before giving an error. gcc/testsuite/ChangeLog: * g++.dg/reflect/members_of15.C: New test. Reviewed-by: Jason Merrill <[email protected]> (cherry picked from commit 73c9662616a7de98cb740c36e5df006afb26c1d1)
