[Bug sanitizer/71962] error: ‘((& x) != 0u)’ is not a constant expression
herring at lanl dot gov
gcc-bugzilla@gcc.gnu.org
Mon Mar 30 21:54:53 GMT 2020
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'.
More information about the Gcc-bugs
mailing list