]> granicus.if.org Git - clang/commit
Sema: Don't assume a nested name specifier holds a type
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 5 Aug 2013 04:53:41 +0000 (04:53 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 5 Aug 2013 04:53:41 +0000 (04:53 +0000)
commit8b051ce94e59c37cfe09e34fe2bf15c037cbbdb3
treeeb7ca9042a9468f4658923b8a551bb907a17ee74
parentbb1b797d2e432293563747bd9704b22cf0787061
Sema: Don't assume a nested name specifier holds a type

Sema::PerformObjectMemberConversion assumed that the Qualifier it was
given holds a type. However, the specifier could hold just a namespace.
In this case, we should ignore the qualifier and not attempt to cast to
it.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187715 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
test/SemaCXX/pr13394-crash-on-invalid.cpp