]> granicus.if.org Git - clang/commit
Check for an invalid field earlier in a constructor's initialization
authorDouglas Gregor <dgregor@apple.com>
Fri, 5 Nov 2010 22:21:31 +0000 (22:21 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 5 Nov 2010 22:21:31 +0000 (22:21 +0000)
commit464b2f0ab31f6de8761f76f6754809f9746f4584
tree3662cd2a5c603514f2ec6e2f3c1b874a6af13977
parent60f7684881f9f6bc779e91212aea89d9afc723dd
Check for an invalid field earlier in a constructor's initialization
of that field. Otherwise, we can end up building and later trying to
instantiate a dependent member initializer that will fail at
instantiation time.

Unfortunately, I've only managed to trigger this bug with very large
sources, so there's no test case :(

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118306 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclCXX.cpp