[clang] [clang] pointer to member with qualified-id closed in parantheses in unevaluated context should be invalid (PR #89713)

via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 23 02:08:09 PDT 2024


================
@@ -27,3 +26,20 @@ namespace rdar10544564 {
   X (Y::*func_mem_ptr1)() = &Y::memfunc1;
   X (Y::*func_mem_ptr2)() = &Y::memfunc2;
 }
+
+namespace test2 {
----------------
cor3ntin wrote:

```suggestion
namespace GH40906 {
```

The test should probably be moved to clang/test/CXX/expr/expr.unary/expr.unary.op/p4.cpp

https://github.com/llvm/llvm-project/pull/89713


More information about the cfe-commits mailing list