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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits