https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125492
--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Marek Polacek <[email protected]>: https://gcc.gnu.org/g:8b3e2e68208730dc95a7803a21a545e93c735d5b commit r17-1627-g8b3e2e68208730dc95a7803a21a545e93c735d5b Author: Marek Polacek <[email protected]> Date: Thu Jun 11 12:18:36 2026 -0400 c++/reflection: tweak size_of diagnostic [PR125492] Here we say "reflection with incomplete type" when size_of got a reflection of a function. Let's clarify that diagnostic. PR c++/125492 gcc/cp/ChangeLog: * reflect.cc (eval_size_of): Add a separate throw_exception for function types. gcc/testsuite/ChangeLog: * g++.dg/reflect/size_of2.C: New test. Reviewed-by: Patrick Palka <[email protected]>
