[Bug c++/93596] [10 Regression] ICE related to templates and vectors.

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 11 06:57:54 GMT 2020


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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
commit r10-7115-gdf15a82804e1f7f4a7432670b33387779de46549
Author: Jason Merrill <jason@redhat.com>
Date:   Tue Mar 10 17:51:46 2020 -0400

    c++: Fix ICE with omitted template args [PR93956].

    reshape_init only wants to work on BRACE_ENCLOSED_INITIALIZER_P, i.e. raw
    initializer lists, and here was getting a CONSTRUCTOR that had already been
    processed for type A<int>.  maybe_aggr_guide should also use that test.

    gcc/cp/ChangeLog
    2020-03-10  Jason Merrill  <jason@redhat.com>

            PR c++/93956
            * pt.c (maybe_aggr_guide): Check BRACE_ENCLOSED_INITIALIZER_P.


More information about the Gcc-bugs mailing list