https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85847
--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Tue Jun 5 15:33:51 2018 New Revision: 261205 URL: https://gcc.gnu.org/viewcvs?rev=261205&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. Added: branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp0x/new3.C Modified: branches/gcc-8-branch/gcc/cp/ChangeLog branches/gcc-8-branch/gcc/cp/init.c