https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88183
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Fri Mar 8 18:19:55 2019 New Revision: 269501 URL: https://gcc.gnu.org/viewcvs?rev=269501&root=gcc&view=rev Log: PR c++/88183 - ICE with .* fold-expression. build_m_component_ref can't handle type-dependent operands, so let's use the default case; tsubst_copy_and_build also uses build_x_binary_op for substituting a DOTSTAR_EXPR. * pt.c (fold_expression) [DOTSTAR_EXPR]: Remove special handling. Added: branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp1z/fold-lambda3.C Modified: branches/gcc-8-branch/gcc/cp/ChangeLog branches/gcc-8-branch/gcc/cp/pt.c