[PR c++/86374] Name lookup failure in enclosing template
authorNathan Sidwell <nathan@acm.org>
Fri, 13 Jul 2018 15:33:27 +0000 (15:33 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 13 Jul 2018 15:33:27 +0000 (15:33 +0000)
commit6b34716ba421d05190d66ab4660a48c0446f76c7
tree10a7cb12aede7c35ae3a03774338d1323e23b47b
parentb2272b138c1e7f6a1cb867d614951d516f88a9f1
[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.

From-SVN: r262637
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]