[Bug c++/92062] ODR-use by static_assert ignored for static member of class template
herring at lanl dot gov
gcc-bugzilla@gcc.gnu.org
Fri Oct 11 00:22:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92062
S. Davis Herring <herring at lanl dot gov> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Known to work| |8.3.0
Known to fail| |9.1.0
--- Comment #1 from S. Davis Herring <herring at lanl dot gov> ---
The similar instantiation trick of
enum {force_instantiation=!&x};
works and fails for the same versions. Tellingly, the warning about the
pointer never being null is prefixed with "In instantiation of 'struct A<0>':"
in the versions that work.
More information about the Gcc-bugs
mailing list