[PATCH] D130894: [clang] Print more information about failed static assertions
Timm Bäder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 2 09:10:58 PDT 2022
tbaeder added a comment.
Oh, I noticed that g++ already does this:
test.cpp:27:21: error: static assertion failed
27 | static_assert(foo() < 4);
| ~~~~~~^~~
test.cpp:27:21: note: the comparison reduces to ‘(10 < 4)’
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130894/new/
https://reviews.llvm.org/D130894
More information about the cfe-commits
mailing list