This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/79687] [5/6/7 Regression] Wrong code with pointer-to-member
- From: "reichelt at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 23 Feb 2017 18:30:44 +0000
- Subject: [Bug c++/79687] [5/6/7 Regression] Wrong code with pointer-to-member
- Auto-submitted: auto-generated
- References: <bug-79687-4@http.gcc.gnu.org/bugzilla/>
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.