https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71962
S. Davis Herring <herring at lanl dot gov> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |herring at lanl dot gov --- Comment #9 from S. Davis Herring <herring at lanl dot gov> --- Another very similar failure (let me know if you want a separate bug for it): inline constexpr int x=0,y=0; // -std=c++17 static_assert(&x!=&y); // error: '((& x) != (& y))' is not a constant expression No failure without the 'inline'.