[clang] [Clang][Sema] Print more static_assert exprs (PR #74852)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 3 06:19:26 PST 2024
================
@@ -6,20 +6,20 @@ struct A {
};
static_assert(A{1, 2, 3, 4, 5} == A{1, 2, 3, 4, 5});
-static_assert(A{1, 2, 3, 4, 5} == A{0, 2, 3, 4, 5}); // expected-error {{failed}}
-static_assert(A{1, 2, 3, 4, 5} == A{1, 0, 3, 4, 5}); // expected-error {{failed}}
-static_assert(A{1, 2, 3, 4, 5} == A{1, 2, 0, 4, 5}); // expected-error {{failed}}
-static_assert(A{1, 2, 3, 4, 5} == A{1, 2, 3, 0, 5}); // expected-error {{failed}}
-static_assert(A{1, 2, 3, 4, 5} == A{1, 2, 3, 4, 0}); // expected-error {{failed}}
+static_assert(A{1, 2, 3, 4, 5} == A{0, 2, 3, 4, 5}); // expected-error {{failed}} expected-note {{evaluates to}}
----------------
erichkeane wrote:
Since the point of this patch is that we're changing what this message shows, please fill in the 'notes' as expected here.
https://github.com/llvm/llvm-project/pull/74852
More information about the cfe-commits
mailing list