[clang] [clang] CWG150: add tests and change to unreleased (PR #93758)

2024-05-30 Thread Matheus Izvekov via cfe-commits

https://github.com/mizvekov closed 
https://github.com/llvm/llvm-project/pull/93758
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[clang] [clang] CWG150: add tests and change to unreleased (PR #93758)

2024-05-30 Thread via cfe-commits

https://github.com/cor3ntin approved this pull request.

LGTM, thanks!

https://github.com/llvm/llvm-project/pull/93758
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[clang] [clang] CWG150: add tests and change to unreleased (PR #93758)

2024-05-30 Thread Vlad Serebrennikov via cfe-commits

https://github.com/Endilll commented:

This looks good to me now.
The contents of the test go over my head, though.

https://github.com/llvm/llvm-project/pull/93758
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[clang] [clang] CWG150: add tests and change to unreleased (PR #93758)

2024-05-30 Thread Matheus Izvekov via cfe-commits

https://github.com/mizvekov updated 
https://github.com/llvm/llvm-project/pull/93758

>From 5ecb3c36d40bb4a361b9af8776e9c4e45fa15b8d Mon Sep 17 00:00:00 2001
From: Matheus Izvekov 
Date: Wed, 29 May 2024 22:23:01 -0300
Subject: [PATCH] [clang] CWG150: add tests and change to unreleased

---
 clang/test/CXX/drs/cwg1xx.cpp | 40 +++
 clang/www/cxx_dr_status.html  |  2 +-
 2 files changed, 41 insertions(+), 1 deletion(-)

diff --git a/clang/test/CXX/drs/cwg1xx.cpp b/clang/test/CXX/drs/cwg1xx.cpp
index 6bc63760f8333..b39cc21fa4917 100644
--- a/clang/test/CXX/drs/cwg1xx.cpp
+++ b/clang/test/CXX/drs/cwg1xx.cpp
@@ -753,6 +753,46 @@ namespace cwg148 { // cwg148: yes
 
 // cwg149: na
 
+namespace cwg150 { // cwg150: 19
+  namespace p1 {
+template 
+class ARG { };
+
+template  class PARM>
+void f(PARM) { }
+
+void g() {
+  ARG x;
+  f(x);
+}
+  } // namespace p1
+
+  namespace p2 {
+template  class PARM>
+class C {
+  PARM pi;
+};
+  } // namespace p2
+
+  namespace n1 {
+struct Dense { static const unsigned int dim = 1; };
+
+template  class View,
+  typename Block>
+void operator+(float, View const&);
+
+template 
+class Lvalue_proxy { operator float() const; };
+
+void test_1d (void) {
+  Lvalue_proxy p;
+  float b;
+  b + p;
+}
+  } // namespace n1
+}
+
 namespace cwg151 { // cwg151: 3.1
   struct X {};
   typedef int X::*p;
diff --git a/clang/www/cxx_dr_status.html b/clang/www/cxx_dr_status.html
index 4cce88fe0490f..628ee12992e6b 100755
--- a/clang/www/cxx_dr_status.html
+++ b/clang/www/cxx_dr_status.html
@@ -938,7 +938,7 @@ C++ defect report implementation status
 https://cplusplus.github.io/CWG/issues/150.html;>150
 C++17
 Template template parameters and default arguments
-Unknown
+Clang 19
   
   
 https://cplusplus.github.io/CWG/issues/151.html;>151

___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[clang] [clang] CWG150: add tests and change to unreleased (PR #93758)

2024-05-30 Thread Vlad Serebrennikov via cfe-commits


@@ -753,6 +753,46 @@ namespace cwg148 { // cwg148: yes
 
 // cwg149: na
 
+namespace cwg150 { // cwg150: yes

Endilll wrote:

```suggestion
namespace cwg150 { // cwg150: 19
```

https://github.com/llvm/llvm-project/pull/93758
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[clang] [clang] CWG150: add tests and change to unreleased (PR #93758)

2024-05-30 Thread Vlad Serebrennikov via cfe-commits

https://github.com/Endilll requested changes to this pull request.

You should apply the suggested change, and run `make_cxx_dr_status` script. I 
don't expect it to introduce new changes, though, but we should be on a safe 
side here, and not rely on manual editing of `cxx_dr_status.html`.

https://github.com/llvm/llvm-project/pull/93758
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[clang] [clang] CWG150: add tests and change to unreleased (PR #93758)

2024-05-30 Thread Vlad Serebrennikov via cfe-commits

https://github.com/Endilll edited 
https://github.com/llvm/llvm-project/pull/93758
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[clang] [clang] CWG150: add tests and change to unreleased (PR #93758)

2024-05-29 Thread via cfe-commits

llvmbot wrote:




@llvm/pr-subscribers-clang

Author: Matheus Izvekov (mizvekov)


Changes



---
Full diff: https://github.com/llvm/llvm-project/pull/93758.diff


2 Files Affected:

- (modified) clang/test/CXX/drs/cwg1xx.cpp (+40) 
- (modified) clang/www/cxx_dr_status.html (+1-1) 


``diff
diff --git a/clang/test/CXX/drs/cwg1xx.cpp b/clang/test/CXX/drs/cwg1xx.cpp
index 6bc63760f8333..6016af67aae1a 100644
--- a/clang/test/CXX/drs/cwg1xx.cpp
+++ b/clang/test/CXX/drs/cwg1xx.cpp
@@ -753,6 +753,46 @@ namespace cwg148 { // cwg148: yes
 
 // cwg149: na
 
+namespace cwg150 { // cwg150: yes
+  namespace p1 {
+template 
+class ARG { };
+
+template  class PARM>
+void f(PARM) { }
+
+void g() {
+  ARG x;
+  f(x);
+}
+  } // namespace p1
+
+  namespace p2 {
+template  class PARM>
+class C {
+  PARM pi;
+};
+  } // namespace p2
+
+  namespace n1 {
+struct Dense { static const unsigned int dim = 1; };
+
+template  class View,
+  typename Block>
+void operator+(float, View const&);
+
+template 
+class Lvalue_proxy { operator float() const; };
+
+void test_1d (void) {
+  Lvalue_proxy p;
+  float b;
+  b + p;
+}
+  } // namespace n1
+}
+
 namespace cwg151 { // cwg151: 3.1
   struct X {};
   typedef int X::*p;
diff --git a/clang/www/cxx_dr_status.html b/clang/www/cxx_dr_status.html
index 4cce88fe0490f..628ee12992e6b 100755
--- a/clang/www/cxx_dr_status.html
+++ b/clang/www/cxx_dr_status.html
@@ -938,7 +938,7 @@ C++ defect report implementation status
 https://cplusplus.github.io/CWG/issues/150.html;>150
 C++17
 Template template parameters and default arguments
-Unknown
+Clang 19
   
   
 https://cplusplus.github.io/CWG/issues/151.html;>151

``




https://github.com/llvm/llvm-project/pull/93758
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[clang] [clang] CWG150: add tests and change to unreleased (PR #93758)

2024-05-29 Thread Matheus Izvekov via cfe-commits

https://github.com/mizvekov created 
https://github.com/llvm/llvm-project/pull/93758

None

>From 834696f9b0a74c5a4c0d261480be6cff71fc91f5 Mon Sep 17 00:00:00 2001
From: Matheus Izvekov 
Date: Wed, 29 May 2024 22:23:01 -0300
Subject: [PATCH] [clang] CWG150: add tests and change to unreleased

---
 clang/test/CXX/drs/cwg1xx.cpp | 40 +++
 clang/www/cxx_dr_status.html  |  2 +-
 2 files changed, 41 insertions(+), 1 deletion(-)

diff --git a/clang/test/CXX/drs/cwg1xx.cpp b/clang/test/CXX/drs/cwg1xx.cpp
index 6bc63760f8333..6016af67aae1a 100644
--- a/clang/test/CXX/drs/cwg1xx.cpp
+++ b/clang/test/CXX/drs/cwg1xx.cpp
@@ -753,6 +753,46 @@ namespace cwg148 { // cwg148: yes
 
 // cwg149: na
 
+namespace cwg150 { // cwg150: yes
+  namespace p1 {
+template 
+class ARG { };
+
+template  class PARM>
+void f(PARM) { }
+
+void g() {
+  ARG x;
+  f(x);
+}
+  } // namespace p1
+
+  namespace p2 {
+template  class PARM>
+class C {
+  PARM pi;
+};
+  } // namespace p2
+
+  namespace n1 {
+struct Dense { static const unsigned int dim = 1; };
+
+template  class View,
+  typename Block>
+void operator+(float, View const&);
+
+template 
+class Lvalue_proxy { operator float() const; };
+
+void test_1d (void) {
+  Lvalue_proxy p;
+  float b;
+  b + p;
+}
+  } // namespace n1
+}
+
 namespace cwg151 { // cwg151: 3.1
   struct X {};
   typedef int X::*p;
diff --git a/clang/www/cxx_dr_status.html b/clang/www/cxx_dr_status.html
index 4cce88fe0490f..628ee12992e6b 100755
--- a/clang/www/cxx_dr_status.html
+++ b/clang/www/cxx_dr_status.html
@@ -938,7 +938,7 @@ C++ defect report implementation status
 https://cplusplus.github.io/CWG/issues/150.html;>150
 C++17
 Template template parameters and default arguments
-Unknown
+Clang 19
   
   
 https://cplusplus.github.io/CWG/issues/151.html;>151

___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits