https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85706
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Wed May 9 02:08:59 2018 New Revision: 260067 URL: https://gcc.gnu.org/viewcvs?rev=260067&root=gcc&view=rev Log: PR c++/85706 - class deduction under decltype * pt.c (for_each_template_parm_r): Handle DECLTYPE_TYPE. Clear *walk_subtrees whether or not we walked into the operand. (type_uses_auto): Only look at deduced contexts. Added: branches/gcc-8-branch/gcc/testsuite/g++.dg/concepts/class-deduction2.C Modified: branches/gcc-8-branch/gcc/cp/ChangeLog branches/gcc-8-branch/gcc/cp/pt.c