https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85428
Fedor Chelnokov <fchelnokov at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fchelnokov at gmail dot com --- Comment #2 from Fedor Chelnokov <fchelnokov at gmail dot com> --- Here is an example without templates that erroneously fails to compile as well: ``` int main() { static constexpr int x = 1; static constexpr int y = 2; static_assert( &x != &y ); } ``` Demo: https://gcc.godbolt.org/z/3WdqP49Gq Related discussion: https://stackoverflow.com/q/70091821/7325599