[Bug c++/89119] [7/8/9/ Regression] internal compiler error: in tsubst_copy with RANGE_EXPR

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 30 19:04:00 GMT 2019


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

--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Jan 30 19:04:05 2019
New Revision: 268400

URL: https://gcc.gnu.org/viewcvs?rev=268400&root=gcc&view=rev
Log:
        PR c++/89119 - ICE with value-initialization in template.
        * pt.c (tsubst_copy_and_build): Handle RANGE_EXPR.

        * g++.dg/cpp0x/initlist-value3.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/initlist-value3.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list