The fix at https://reviews.llvm.org/D124613 mimics MSVC behavior with friend declarations, but it does break some C++ conformant code that was built with -fms-compatibility. This fix reverts it to avoid causing more problems.
Diff Detail
Diff Detail
Paths
| Differential D125529
Revert MSVC compatibility feature that breaks conformant code Needs ReviewPublic Authored by frederic-tingaud-sonarsource on May 13 2022, 2:45 AM.
Details Summary The fix at https://reviews.llvm.org/D124613 mimics MSVC behavior with friend declarations, but it does break some C++ conformant code that was built with -fms-compatibility. This fix reverts it to avoid causing more problems.
Diff Detail
Revision Contents
Diff 429180 clang/lib/Sema/SemaDecl.cpp
clang/test/SemaCXX/ms-friend-function-decl.cpp
clang/unittests/AST/ASTImporterTest.cpp
|