]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR c++/46160 (ICE with volatile structure and enum)
authorJakub Jelinek <jakub@redhat.com>
Thu, 11 Nov 2010 20:39:25 +0000 (21:39 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 11 Nov 2010 20:39:25 +0000 (21:39 +0100)
commit9d4a5968c72587eee7d83ad047681e425092f054
tree649dc44b6405cb12c4c5c143e03a41fd9d6f8584
parent5651412d5e5dcbec677853735df2b33def7842ac
backport: re PR c++/46160 (ICE with volatile structure and enum)

2010-11-11  Jakub Jelinek  <jakub@redhat.com>

Backport from mainline
2010-11-05  Jakub Jelinek  <jakub@redhat.com>

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

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

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