[PATCH] D124613: In MSVC compatibility mode, friend function declarations behave as function declarations
Fred Tingaud via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 13 02:56:22 PDT 2022
frederic-tingaud-sonarsource added a comment.
I realized that this current patch did in fact mimic MSVC behavior up to its mishandling on ADL. I understand that it is not in the spirit of clang's philosophy for MSVC compatibility to have that, but the fixed version I was about to propose would stray away from MSVC behavior, which doesn't really make sense either.
So instead I think the right approach should be to revert and see later whether we could put it back under the hood of another flag.
Is there currently a flag that could be used for "potentially C++ compliant breaking MSVC compatibility"? If there isn't, would it make sense to propose one?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124613/new/
https://reviews.llvm.org/D124613
More information about the cfe-commits
mailing list