[PATCH] D16396: Warn if variable cannot be implicitly instantiated
Serge Pavlov via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 21 00:33:19 PST 2016
sepavloff created this revision.
sepavloff added a reviewer: rsmith.
sepavloff added subscribers: cfe-commits, silvas.
Instantiation of static class members may be a source of user misunderstanding,
especially in the case of using modules, PR24425 describes one of such examples.
This patch implements warning if compiler tried to make implicit instantiation
but could not find template definition. The implementation follows discussion
of http://reviews.llvm.org/D12326.
http://reviews.llvm.org/D16396
Files:
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/CXX/temp/temp.decls/temp.mem/p1.cpp
test/OpenMP/parallel_ast_print.cpp
test/OpenMP/parallel_sections_ast_print.cpp
test/OpenMP/task_ast_print.cpp
test/OpenMP/teams_ast_print.cpp
test/OpenMP/threadprivate_ast_print.cpp
test/SemaCXX/PR10177.cpp
test/SemaCXX/undefined-internal.cpp
test/SemaTemplate/unavailable-var-template.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16396.45494.patch
Type: text/x-patch
Size: 7395 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160121/8e0afe84/attachment.bin>
More information about the cfe-commits
mailing list