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)
commita6ef8f0813d55266dea52b49f13d0a250b5dad7d
tree75223c997ff48ecf222d37857c327b415e243a2f
parent4dcc53f3125d7af704a47df97fb38a6d930bb5c4
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.

llvm-svn: 77002
clang/include/clang/AST/ASTContext.h
clang/include/clang/AST/Decl.h
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/AST/ASTContext.cpp
clang/lib/AST/Decl.cpp
clang/lib/Sema/Sema.h
clang/lib/Sema/SemaExpr.cpp
clang/lib/Sema/SemaTemplateInstantiate.cpp
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
clang/test/CXX/temp/temp.decls/temp.class/temp.static/p1-inst.cpp [new file with mode: 0644]
clang/test/CXX/temp/temp.decls/temp.class/temp.static/p1.cpp