================
@@ -107,6 +107,8 @@ void f() {
   constexpr int p = &*a;
   // since-cxx11-error@-1 {{cannot initialize a variable of type 'const int' 
with an rvalue of type 'A *'}}
   constexpr A *p2 = &*a;
+  // since-cxx11-error@-1 {{constexpr variable 'p2' must be initialized by a 
constant expression}} \
+  // since-cxx11-note@-1 {{read of dereferenced null pointer is not allowed in 
a constant expression}}
----------------
Endilll wrote:

```suggestion
  //   since-cxx11-note@-2 {{read of dereferenced null pointer is not allowed 
in a constant expression}}
```
As a consequence, you need to remove the backslash on the previous line.

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

Reply via email to