https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113207

--- Comment #17 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Richard Biener
<rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:07490d983161912fa314607c5a5beb9c49cc4a3f

commit r12-11223-g07490d983161912fa314607c5a5beb9c49cc4a3f
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)
  • [Bug lto/113207] [12 Regression... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to