https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85731
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Tue Jun 5 11:27:15 2018 New Revision: 261197 URL: https://gcc.gnu.org/viewcvs?rev=261197&root=gcc&view=rev Log: PR c++/85731 - wrong error with qualified-id in template. * semantics.c (finish_qualified_id_expr): build_qualified_name for unbound names in the current class. Added: branches/gcc-8-branch/gcc/testsuite/g++.dg/template/qualified-id7.C Modified: branches/gcc-8-branch/gcc/cp/ChangeLog branches/gcc-8-branch/gcc/cp/semantics.c