[PATCH] D139173: [clang] Add test for CWG600

Shafik Yaghmour via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 2 08:58:20 PST 2022


shafik added inline comments.


================
Comment at: clang/test/CXX/drs/dr6xx.cpp:18
+  sp->f(2);
+  sp->f(2.2); // expected-error {{is a private member}}
+}
----------------
Maybe add a comment above this saying something like:

```
// access control is applied after overload resolution
// [class.access.general]p4 "For an overload set, access control is applied only to the function selected by overload resolution."
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139173/new/

https://reviews.llvm.org/D139173



More information about the cfe-commits mailing list