https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85148
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Wed Apr 4 16:45:53 2018 New Revision: 259093 URL: https://gcc.gnu.org/viewcvs?rev=259093&root=gcc&view=rev Log: PR c++/85148 - ICE with 'this' in array NSDMI. * tree.c (replace_placeholders_r): Use handled_component_p. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/nsdmi-aggr11.C Modified: branches/gcc-7-branch/gcc/cp/ChangeLog branches/gcc-7-branch/gcc/cp/tree.c