[clang] [Clang] Static and explicit object member functions with the same parameter-type-lists (PR #93430)

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Mon May 27 02:05:18 PDT 2024


================
@@ -0,0 +1,18 @@
+// RUN: %clang_cc1 -std=c++23 %s -ast-dump | FileCheck --check-prefixes=CXX23 %s
+
+namespace cwg2771 { // cwg2771: 18
+
+struct A{
+    int a;
+    void cwg2771(){
+      int* r = &a;
+    }
+};
+// CXX23: CXXMethodDecl{{.+}}cwg2771
+// CXX23-NEXT: CompoundStmt
+// CXX23-NEXT: DeclStmt
+// CXX23-NEXT: VarDecl
+// CXX23-NEXT: UnaryOperator
+// CXX23-NEXT: MemberExpr
+// CXX23-NEXT: CXXThisExpr{{.+}}'cwg2771::A *'
+}
----------------
Endilll wrote:

```suggestion
} // namespace cwg2771
```

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


More information about the cfe-commits mailing list