]> granicus.if.org Git - clang/commit
Template instantiation for static data members that are defined out-of-line.
authorDouglas Gregor <dgregor@apple.com>
Fri, 24 Jul 2009 20:34:43 +0000 (20:34 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 24 Jul 2009 20:34:43 +0000 (20:34 +0000)
commit7caa6825f42a0f7e97d6fc06233133c42b218e46
tree1be851e7cede92bb39bcb037c00a6d9a9061e946
parent0eb7cff82f943ebcb14f1c9a2020a83a030a0893
Template instantiation for static data members that are defined out-of-line.

Note that this also fixes a bug that affects non-template code, where we
were not treating out-of-line static data members are "file-scope" variables,
and therefore not checking their initializers.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77002 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ASTContext.h
include/clang/AST/Decl.h
include/clang/Basic/DiagnosticSemaKinds.td
lib/AST/ASTContext.cpp
lib/AST/Decl.cpp
lib/Sema/Sema.h
lib/Sema/SemaExpr.cpp
lib/Sema/SemaTemplateInstantiate.cpp
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/CXX/temp/temp.decls/temp.class/temp.static/p1-inst.cpp [new file with mode: 0644]
test/CXX/temp/temp.decls/temp.class/temp.static/p1.cpp