]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/46160 (ICE with volatile structure and enum)
authorJakub Jelinek <jakub@redhat.com>
Fri, 5 Nov 2010 19:02:46 +0000 (20:02 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 5 Nov 2010 19:02:46 +0000 (20:02 +0100)
commit897145e3e11c868abb2b5ec23ef5f65a87914270
tree8df473c5a1f98acadecb2f68d4e7a78d4014022c
parentee01a467d1b18dfe0f3b8eedb7fa3507310294ed
re PR c++/46160 (ICE with volatile structure and enum)

PR c++/46160
* cp-gimplify.c (cp_gimplify_expr): Drop volatile MEM_REFs
on the RHS to avoid infinite recursion with gimplify_expr.

* g++.dg/opt/empty2.C: New test.

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