]> granicus.if.org Git - clang/commit
Move the checking of overridden virtual functions into the code path
authorDouglas Gregor <dgregor@apple.com>
Tue, 1 Dec 2009 17:24:26 +0000 (17:24 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 1 Dec 2009 17:24:26 +0000 (17:24 +0000)
commit4ba3136b3eb9740a07bd61d0ab23ce9a8d894dee
tree525f804333c9a177e4635d61de93b6fe891ea83e
parent9af2f52fbcb993350f54e57d498e7849ba29c75d
Move the checking of overridden virtual functions into the code path
common to both parsing and template instantiation, so that we'll find
overridden virtuals for member functions of class templates when they
are instantiated.

Additionally, factor out the checking for pure virtual functions, so
that it will be executed both at parsing time and at template
instantiation time.

These changes fix PR5656 (for real), although one more tweak
w.r.t. member function templates will be coming along shortly.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90241 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/Sema.h
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/SemaCXX/virtual-override.cpp