[Bug c++/95004] Static array of base classes member pointers
ppalka at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri May 8 12:22:28 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95004
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ppalka at gcc dot gnu.org
--- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Reduced:
template <int> struct base {
int value;
};
struct derived: base<0>, base<1> {
using pointer_type = int derived::*;
static constexpr pointer_type m = &base<1>::value;
};
static_assert(derived::m == &base<1>::value);
More information about the Gcc-bugs
mailing list