]> granicus.if.org Git - clang/commit
Do not mark the virtual members of an implicitly-instantiated class as
authorDouglas Gregor <dgregor@apple.com>
Tue, 11 May 2010 20:24:17 +0000 (20:24 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 11 May 2010 20:24:17 +0000 (20:24 +0000)
commitbbbe074566a8defed299ff676bc65b3631861768
tree8b70d4484b997887ce835dcfe1d4a5239bf15e67
parent92dd1915842410005c68d32c43bb3b3cf5a4a702
Do not mark the virtual members of an implicitly-instantiated class as
referenced unless we see one of them defined (or the key function
defined, if it as one) or if we need the vtable for something. Fixes
PR7114.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103497 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/Sema.h
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaExprCXX.cpp
test/CXX/class.access/p4.cpp
test/SemaCXX/default-assignment-operator.cpp
test/SemaTemplate/virtual-member-functions.cpp