https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85807
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Mon Jun 11 22:02:01 2018 New Revision: 261461 URL: https://gcc.gnu.org/viewcvs?rev=261461&root=gcc&view=rev Log: PR c++/85807 - ICE with call in template NSDMI. * init.c (get_nsdmi): Use push_to/pop_from_top_level. * tree.c (bot_manip): Don't set_flags_from_callee in a template. Added: branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp0x/nsdmi-template17.C Modified: branches/gcc-8-branch/gcc/cp/ChangeLog branches/gcc-8-branch/gcc/cp/init.c branches/gcc-8-branch/gcc/cp/tree.c branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice14.C branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nsdmi8.C