https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85731
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Tue Jun 5 11:27:12 2018 New Revision: 261196 URL: https://gcc.gnu.org/viewcvs?rev=261196&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: trunk/gcc/testsuite/g++.dg/template/qualified-id7.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/semantics.c