https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91483
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Related test: void foo () { constexpr int a = 0; constexpr const int *p = &a; } We just say error: ‘& a’ is not a constant expression but that's inadequate. clang++ now says note: address of non-static constexpr variable 'a' may differ on each invocation of the enclosing function; add 'static' to give it a constant address