https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113207
--- Comment #15 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:949f38047860b19a4276b8191d012a3b05aab1e2 commit r13-9510-g949f38047860b19a4276b8191d012a3b05aab1e2 Author: Richard Biener <rguent...@suse.de> Date: Mon Feb 3 14:27:01 2025 +0100 lto/113207 - fix free_lang_data_in_type When we process function types we strip volatile and const qualifiers after building a simplified type variant (which preserves those). The qualified type handling of both isn't really compatible, so avoid bad interaction by swapping this, first dropping const/volatile qualifiers and then building the simplified type thereof. PR lto/113207 * ipa-free-lang-data.cc (free_lang_data_in_type): First drop const/volatile qualifiers from function argument types, then build a simplified type. * gcc.dg/pr113207.c: New testcase. (cherry picked from commit a55e14b239181381204c615335929b3316d75370)