From aa49ecc4586af252e2841c2bc8f5689526da7a4b Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 1 Dec 2010 20:32:20 +0000 Subject: Not content to implement just "extern" explicit template instantiations, GCC also supports "inline" and "static" explicit template instantiations. Parse and warn about such constructs, but don't implement the semantics of either "inline" or "static". They don't seem to be widely used. llvm-svn: 120599 --- clang/test/SemaTemplate/explicit-instantiation.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/test/SemaTemplate/explicit-instantiation.cpp') diff --git a/clang/test/SemaTemplate/explicit-instantiation.cpp b/clang/test/SemaTemplate/explicit-instantiation.cpp index 3a1446e8dd6..ffec3c2b97f 100644 --- a/clang/test/SemaTemplate/explicit-instantiation.cpp +++ b/clang/test/SemaTemplate/explicit-instantiation.cpp @@ -84,6 +84,10 @@ namespace explicit_instantiation_after_implicit_instantiation { template struct X0<1>; } +template struct X3 { }; +inline template struct X3; // expected-warning{{ignoring 'inline' keyword on explicit template instantiation}} +static template struct X3; // expected-warning{{ignoring 'static' keyword on explicit template instantiation}} + namespace PR7622 { // expected-note{{to match this}} template struct basic_streambuf; -- cgit v1.2.3