[PATCH] D131479: Handle explicitly defaulted consteval special members.

Utkarsh Saxena via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 10 23:06:08 PDT 2022


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



More information about the cfe-commits mailing list