[Bug c++/80078] Incorrect classification of address of volatile as not constant

headch at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Sep 24 03:04:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80078

Christopher Head <headch at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |8.2.0

--- Comment #2 from Christopher Head <headch at gmail dot com> ---
This is still broken in 8.2.0. Also, it affects struct members as well as
arrays, which have no easy workaround like “ary + N”:

struct S {
  int x;
};

volatile S s;

static_assert(&s.x, "");


More information about the Gcc-bugs mailing list