[PR c++/86374] Name lookup failure in enclosing template
commit2e88eb47b349448afa8993947bb39968296b1d9d
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Jul 2018 15:33:27 +0000 (13 15:33 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Jul 2018 15:33:27 +0000 (13 15:33 +0000)
tree10a7cb12aede7c35ae3a03774338d1323e23b47b
parenta950155e3f7cb8ec4d4daed83ce8dd1c6bd10c2c
[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.
* parser.c (cp_parser_template_id): Combine entering_scope decl &
initializer.

PR c++/86374
* g++.dg/pr86374.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@262637 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr86374.C [new file with mode: 0644]