]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix constexpr evaluation of comparisons involving pointer-to-members
authorppalka <ppalka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Feb 2016 22:54:52 +0000 (22:54 +0000)
committerppalka <ppalka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Feb 2016 22:54:52 +0000 (22:54 +0000)
commitf7ef53928bc90411d40404ce42dc2c3dfc33c2fb
treec04eca8d743478926aef38372afd11444d227844
parent2cc8e1069eaefc6c0b3cf1d612926e7bbca2a934
Fix constexpr evaluation of comparisons involving pointer-to-members

gcc/cp/ChangeLog:

* constexpr.c (cxx_eval_binary_expression): Fold equality
comparisons involving PTRMEM_CSTs.

gcc/testsuite/ChangeLog:

* g++.dg/cpp0x/constexpr-ptrmem5.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233158 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-ptrmem5.C [new file with mode: 0644]