From 0bf96f933a0cae717d8311785db8485aeacabf1b Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 25 Apr 2018 22:58:55 +0000 Subject: Fix crash on qualified template name instantiation if the template name has no template argument list. llvm-svn: 330881 --- clang/test/SemaTemplate/dependent-names.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'clang/test/SemaTemplate/dependent-names.cpp') diff --git a/clang/test/SemaTemplate/dependent-names.cpp b/clang/test/SemaTemplate/dependent-names.cpp index d5c9d66c452..070c7e410f1 100644 --- a/clang/test/SemaTemplate/dependent-names.cpp +++ b/clang/test/SemaTemplate/dependent-names.cpp @@ -419,3 +419,11 @@ template struct CT2 { template struct X; }; template int CT2::X<>; // expected-error {{template parameter list matching the non-templated nested type 'CT2' should be empty}} + +namespace DependentTemplateIdWithNoArgs { + template void f() { T::template f(); } + struct X { + template static void f(); + }; + void g() { f(); } +} -- cgit v1.2.3