]> granicus.if.org Git - clang/commit
If a non-dependent base class initializer fails to match any direct or
authorDouglas Gregor <dgregor@apple.com>
Wed, 16 Jun 2010 16:03:14 +0000 (16:03 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 16 Jun 2010 16:03:14 +0000 (16:03 +0000)
commit3956b1ab303139d9e952c2c30ed16643fad0c325
tree85fea6c8328b1e957ec43967ee6015fc59721e6b
parenta8f031fa67ea2f0d7e3a97207f7bc6f118e5fa06
If a non-dependent base class initializer fails to match any direct or
virtual base class, but the class still has dependent base classes,
then don't diagnose the failed match as an error: the right base class
might magically appear. Fixes PR7259.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106103 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclCXX.cpp
test/SemaTemplate/class-template-ctor-initializer.cpp