https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86374
--- Comment #3 from Nathan Sidwell <nathan at gcc dot gnu.org> --- Author: nathan Date: Fri Jul 13 16:46:08 2018 New Revision: 262639 URL: https://gcc.gnu.org/viewcvs?rev=262639&root=gcc&view=rev Log: [PR c++/86374] Name lookup failure in enclosing template https://gcc.gnu.org/ml/gcc-patches/2018-07/msg00701.html PR c++/86374 * pt.c (lookup_template_class_1): Use tsubst_aggr_type for contexts that are classes. PR c++/86374 * g++.dg/pr86374.C: New. Added: branches/gcc-8-branch/gcc/testsuite/g++.dg/pr86374.C Modified: branches/gcc-8-branch/gcc/cp/ChangeLog branches/gcc-8-branch/gcc/cp/pt.c branches/gcc-8-branch/gcc/testsuite/ChangeLog