This is an archive of the discontinued LLVM Phabricator instance.

Revert MSVC compatibility feature that breaks conformant code
Needs ReviewPublic

Authored by frederic-tingaud-sonarsource on May 13 2022, 2:45 AM.

Details

Reviewers
rnk
shafik
thakis
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

Event Timeline

Herald added a project: Restricted Project. · View Herald Transcript
frederic-tingaud-sonarsource requested review of this revision.May 13 2022, 2:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 13 2022, 2:45 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
thakis resigned from this revision.Jul 22 2022, 8:39 AM

This can be closed, it landed elsewhere.

clang/lib/Sema/SemaDecl.cpp