re PR c++/70615 (ICE on valid code at -O1 and above on x86_64-linux-gnu in add_expr...
authorJason Merrill <jason@redhat.com>
Wed, 13 Apr 2016 14:33:53 +0000 (10:33 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 13 Apr 2016 14:33:53 +0000 (10:33 -0400)
commit9d4099343ab2eec82ddb4faff48b6e04fed5519c
treea9a0753642ddcbc20a4440f09087f54ed2af141c
parent75ca93ec9a9889766beae43555a4efbe73ddf52b
re PR c++/70615 (ICE on valid code at -O1 and above on x86_64-linux-gnu in add_expr, at tree.c:7870)

PR c++/70615
* cp-gimplify.c (cp_genericize_r): Expand PTRMEM_CST here.
(cp_gimplify_expr): Not here.

From-SVN: r234940
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/testsuite/g++.dg/opt/ptrmem7.C [new file with mode: 0644]