[cwg1699] clang interprets friendship rules lexically; other compilers do not #44053
Labels
bugzilla
Issues migrated from bugzilla
c++
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
Extended Description
The following code:
compiles in clang version 9.0.0-2. If the function body is defined outside of the class, the compiler correctly issues an error about not being able to access the private member.
The text was updated successfully, but these errors were encountered: