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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Marek Polacek <mpola...@gcc.gnu.org>:

https://gcc.gnu.org/g:8b449dcd84334068c769a2f427812dadb95e61de

commit r13-2803-g8b449dcd84334068c769a2f427812dadb95e61de
Author: Marek Polacek <pola...@redhat.com>
Date:   Tue Sep 20 14:54:57 2022 -0400

    c++: ICE-on-invalid with designated initializer [PR106983]

    We ICE in the code added in r12-7117: type_build_dtor_call gets
    the error_mark_node because the type of 'prev' wasn't declared.

            PR c++/106983

    gcc/cp/ChangeLog:

            * typeck2.cc (split_nonconstant_init_1): Check TYPE_P.

    gcc/testsuite/ChangeLog:

            * g++.dg/other/error36.C: New test.

Reply via email to