https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70248
Paul Keir <pkeir at outlook dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pkeir at outlook dot com --- Comment #10 from Paul Keir <pkeir at outlook dot com> --- Here is another example which GCC accepts, but Clang correctly rejects: constexpr bool test() { int arr[2]{}; void *p1 = &arr[0]; void *p2 = &arr[1]; return p1 < p2; } constexpr bool b = test();