[ms] Prevent explicit constructor name lookup if scope is missing
authorWill Wilson <will@indefiant.com>
Thu, 25 Oct 2018 11:45:32 +0000 (11:45 +0000)
committerWill Wilson <will@indefiant.com>
Thu, 25 Oct 2018 11:45:32 +0000 (11:45 +0000)
commitcaa02f879f569de2c0d912e670f0edbb647ed3a4
tree165fceb3c2b89e27a4b1766189405a208d9021f4
parent49d79a864cfcbe9535bf518a22800be865090a70
[ms] Prevent explicit constructor name lookup if scope is missing

MicrosoftExt allows explicit constructor calls. Prevent lookup of constructor name unless the name has explicit scope.
This avoids a compile-time crash due to confusing a member access for a constructor name.

Test case included. All tests pass.

Differential Revision: https://reviews.llvm.org/D53441

llvm-svn: 345258
clang/lib/Parse/ParseExpr.cpp
clang/test/SemaCXX/MicrosoftCompatibility.cpp