https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114931
--- Comment #16 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:7a212ac678e13e0df5da2d090144b246a1262b64 commit r15-127-g7a212ac678e13e0df5da2d090144b246a1262b64 Author: Richard Biener <rguent...@suse.de> Date: Fri May 3 11:48:07 2024 +0200 Avoid changing type in the type_hash_canon hash When building a type and type_hash_canon returns an existing type avoid changing it, in particular its TYPE_CANONICAL. PR middle-end/114931 * tree.cc (build_array_type_1): Return early when type_hash_canon returned an older existing type. (build_function_type): Likewise. (build_method_type_directly): Likewise. (build_offset_type): Likewise.