Before:
array.cpp:74:15: error: static assertion expression is not an integral constant expression
74 | static_assert(ints(1, div(true, false), 2, div(false, true)) == 1, "");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
array.cpp:68:12: note: division by zero
68 | return 1 / (int)b;
| ^
array.cpp:74:23: note: in call to 'div(true, false)'
74 | static_assert(ints(1, div(true, false), 2, div(false, true)) == 1, "");
| ^
1 error generated.After:
array.cpp:74:15: error: static assertion expression is not an integral constant expression
74 | static_assert(ints(1, div(true, false), 2, div(false, true)) == 1, "");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
array.cpp:68:12: note: division by zero
68 | return 1 / (int)b;
| ^
array.cpp:74:23: note: in call to 'div(true, false)'
74 | static_assert(ints(1, div(true, false), 2, div(false, true)) == 1, "");
| ^~~~~~~~~~~~~~~~As you can see I have a test case, but I didn't attach it in test/Misc/constexpr-source-ranges.cpp because I can't get -fdiagnostics-print-source-range-info to actually print anything for them.