This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/85847] [6/7/8/9 Regression] unexpected expression of kind template_id_expr


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

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu May 24 13:36:21 2018
New Revision: 260671

URL: https://gcc.gnu.org/viewcvs?rev=260671&root=gcc&view=rev
Log:
        PR c++/85847
        * init.c (build_new_1): Use fold_non_dependent_expr.  Use a dedicated
        variable for its result.  Fix a condition.
        (build_new): Use fold_non_dependent_expr.  Tweak a condition.

        * g++.dg/cpp0x/new3.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/new3.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/init.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]