This is an archive of the discontinued LLVM Phabricator instance.

[ms] Prevent explicit constructor name lookup if scope is missing
ClosedPublic

Authored by lantictac on Oct 19 2018, 9:55 AM.

Details

Summary

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.

Diff Detail

Repository
rC Clang

Event Timeline

lantictac created this revision.Oct 19 2018, 9:55 AM
rnk accepted this revision.Oct 24 2018, 2:17 PM

lgtm, thanks!

This revision is now accepted and ready to land.Oct 24 2018, 2:17 PM
This revision was automatically updated to reflect the committed changes.