================
@@ -410,11 +410,11 @@ namespace dr1358 { // dr1358: 3.1
   struct B : Virt {
     int member;
     constexpr B(NonLit u) : member(u) {}
-    // since-cxx11-error@-1 {{constexpr constructor's 1st parameter type 
'NonLit' is not a literal type}}
-    //   since-cxx11-note@#dr1358-NonLit {{'NonLit' is not literal because it 
is not an aggregate and has no constexpr constructors other than copy or move 
constructors}}
+    // cxx11-20-error@-1 {{constexpr constructor with 1st non-literal 
parameter type 'NonLit' is a C++23 extension}}
+    // cxx11-20-note@#dr1358-NonLit {{'NonLit' is not literal because it is 
not an aggregate and has no constexpr constructors other than copy or move 
constructors}}
     constexpr NonLit f(NonLit u) const { return NonLit(); }
-    // since-cxx11-error@-1 {{constexpr function's return type 'NonLit' is not 
a literal type}}
-    //   since-cxx11-note@#dr1358-NonLit {{'NonLit' is not literal because it 
is not an aggregate and has no constexpr constructors other than copy or move 
constructors}}
+    // cxx11-20-error@-1 {{constexpr function with non-literal return type 
'NonLit' is a C++23 extension}}
+    // cxx11-20-note@#dr1358-NonLit {{'NonLit' is not literal because it is 
not an aggregate and has no constexpr constructors other than copy or move 
constructors}}
----------------
Endilll wrote:

```suggestion
    //   cxx11-20-note@#dr1358-NonLit {{'NonLit' is not literal because it is 
not an aggregate and has no constexpr constructors other than copy or move 
constructors}}
```

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

Reply via email to