Fix ptrmem comparison for unions.
authorJason Merrill <jason@redhat.com>
Mon, 11 Jun 2018 21:01:23 +0000 (17:01 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 11 Jun 2018 21:01:23 +0000 (17:01 -0400)
commit9b0607def49d8e30128253635ec44771f7c03530
treea98da6dca0c6e3ad3e616778fb314a3e406ed415
parent960a58b949d97b106bc3579e7c451d0f4f5749ac
Fix ptrmem comparison for unions.

* constexpr.c (cxx_eval_binary_expression): Special case comparison
of pointers to members of the same union.

From-SVN: r261454
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/expr/ptrmem10.C [new file with mode: 0644]