https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123849
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Andrew Pinski <[email protected]>: https://gcc.gnu.org/g:5957ce932fc83b778d6881a375d50147ac6ca9bd commit r16-7100-g5957ce932fc83b778d6881a375d50147ac6ca9bd Author: Andrew Pinski <[email protected]> Date: Tue Jan 27 16:55:45 2026 -0800 waccess: Fix handling of extended builtin types [PR123849] So DEMANGLE_COMPONENT_EXTENDED_BUILTIN_TYPE is not being handled from the demangler in new_delete_mismatch_p. This adds the handling, just like DEMANGLE_COMPONENT_BUILTIN_TYPE as there is no simple way to compare the type you have to call into the demanager to do it instead. Bootstrapped and tested on x86_64-linux-gnu. PR tree-optimization/123849 gcc/ChangeLog: * gimple-ssa-warn-access.cc (new_delete_mismatch_p): Handle DEMANGLE_COMPONENT_EXTENDED_BUILTIN_TYPE like DEMANGLE_COMPONENT_BUILTIN_TYPE. gcc/testsuite/ChangeLog: * g++.dg/warn/Wmismatched-new-delete-11.C: New test. Signed-off-by: Andrew Pinski <[email protected]>
