[Bug c++/79687] [5/6/7 Regression] Wrong code with pointer-to-member
trippels at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 23 10:32:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79687
--- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Hmm, I was using:
struct A {
char c;
};
int main() {
char A::*p = &A::c;
static char A::*const q = p;
A a;
if (&(a.*q) - &a.c)
__builtin_abort();
}
and this triggers with gcc-5.
More information about the Gcc-bugs
mailing list