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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Uecker <uec...@gcc.gnu.org>:

https://gcc.gnu.org/g:871bb5ad2dd56343d80b6a6d269e85efdc9999e5

commit r14-9763-g871bb5ad2dd56343d80b6a6d269e85efdc9999e5
Author: Martin Uecker <uec...@tugraz.at>
Date:   Thu Mar 28 19:15:40 2024 +0100

    Fix ICE with -g and -std=c23 related to incomplete types [PR114361]

    We did not copy TYPE_CANONICAL to the incomplete variants when
    completing a structure.

            PR c/114361

            gcc/c/
            * c-decl.cc (finish_struct): Set TYPE_CANONICAL when completing
            strucute types.

            gcc/testsuite/
            * gcc.dg/pr114361.c: New test.
            * gcc.dg/c23-tag-incomplete-1.c: New test.
            * gcc.dg/c23-tag-incomplete-2.c: New test.

Reply via email to