https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86706
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Sep 5 07:16:15 2018 New Revision: 264103 URL: https://gcc.gnu.org/viewcvs?rev=264103&root=gcc&view=rev Log: Backported from mainline 2018-08-03 Jason Merrill <ja...@redhat.com> PR c++/86706 * class.c (build_base_path): Use currently_open_class. * g++.dg/template/pr86706.C: New test. Added: branches/gcc-8-branch/gcc/testsuite/g++.dg/template/pr86706.C Modified: branches/gcc-8-branch/gcc/cp/ChangeLog branches/gcc-8-branch/gcc/cp/class.c branches/gcc-8-branch/gcc/testsuite/ChangeLog