]> granicus.if.org Git - clang/commit
Only complain about explicit instantiations following explicit
authorDouglas Gregor <dgregor@apple.com>
Fri, 9 Apr 2010 21:02:29 +0000 (21:02 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 9 Apr 2010 21:02:29 +0000 (21:02 +0000)
commitc42b6520b607cda57e850a60143e9f98bf421dbb
treedb61d967c901ae7185db8ad96fd044374d461897
parent66d5142ab5026aa77ab6f1d7e4d9bdb0b438d55a
Only complain about explicit instantiations following explicit
specializations when the explicit instantiation was... explicitly
written, i.e., not the product of an explicit instantiation of an
enclosing class. Fixes this spurious warning when Clang builds LLVM:

/Volumes/Data/dgregor/Projects/llvm/lib/CodeGen/MachineDominators.cpp:22:1:
warning: explicit instantiation of 'addRoot' that occurs after an
explicit specialization will be ignored (C++0x extension) [-pedantic]

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100900 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplate.cpp
lib/Sema/SemaTemplateInstantiate.cpp
test/CXX/temp/temp.spec/temp.explicit/p4.cpp