https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118390
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:2619413a5e032e2f2c3d4a2202ba8bf324cf08ab commit r15-6924-g2619413a5e032e2f2c3d4a2202ba8bf324cf08ab Author: Jakub Jelinek <ja...@redhat.com> Date: Wed Jan 15 18:27:07 2025 +0100 c++: Handle RAW_DATA_CST in unify [PR118390] This patch uses the count_ctor_elements function to fix up unify deduction of array sizes. 2025-01-15 Jakub Jelinek <ja...@redhat.com> PR c++/118390 * cp-tree.h (count_ctor_elements): Declare. * call.cc (count_ctor_elements): No longer static. * pt.cc (unify): Use count_ctor_elements instead of CONSTRUCTOR_NELTS. * g++.dg/cpp/embed-20.C: New test. * g++.dg/cpp0x/pr118390.C: New test.