[Bug c++/79687] [5/6/7 Regression] Wrong code with pointer-to-member

reichelt at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 23 18:30:00 GMT 2017


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

--- Comment #16 from Volker Reichelt <reichelt at gcc dot gnu.org> ---
According to [expr.mptr.oper] the code in comment 15 has undefined behavior,
because the second operand of ->* is the null-pointer-to-member-value.


More information about the Gcc-bugs mailing list