This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/46160] [4.5 Regression] ICE with volatile structure and enum
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 11 Nov 2010 20:39:41 +0000
- Subject: [Bug c++/46160] [4.5 Regression] ICE with volatile structure and enum
- Auto-submitted: auto-generated
- References: <bug-46160-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46160
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-11 20:39:33 UTC ---
Author: jakub
Date: Thu Nov 11 20:39:25 2010
New Revision: 166619
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166619
Log:
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.
Added:
branches/gcc-4_5-branch/gcc/testsuite/g++.dg/opt/empty2.C
Modified:
branches/gcc-4_5-branch/gcc/cp/ChangeLog
branches/gcc-4_5-branch/gcc/cp/cp-gimplify.c
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog