Spun off of comments here
3 [intro.defs], 3.65 [defns.undef] says
Evaluation of a constant expression ([expr.const]) never exhibits behavior explicitly specified as undefined in [intro] through [cpp]
Though, reading through [expr.const] it's not obvious to me that every statement in an immediate function is defined as being a constant expression.
If code in a consteval function attempts behavior explicitly described as UB, can the compiler exhibit UB?
consteval void f() {
int x;
int y;
&x - &y; // UB allowed? or diagnostic required?
}