usaxena95 added inline comments.

================
Comment at: clang/test/SemaCXX/cxx2a-consteval.cpp:805
+void func() {
+  default_ctor<foo> fail0; // expected-error-re {{call to consteval function 
'{{.*::default_ctor<.*::foo>}}::default_ctor' is not a constant expression}} \
+                              expected-note {{in call to 'default_ctor()'}}
----------------
aaron.ballman wrote:
> Why do we need to use the regex here (and elsewhere)?
I wanted to omit the namespace name in the error messages and make the 
namespace more descriptive. See the `.*` in the error messages.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131479/new/

https://reviews.llvm.org/D131479

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

Reply via email to