Commit Message

Hi!
cp_gimplify_expr already has code to avoid infinite recursion if
op1 is a volatile decl, but if it is volatile MEM_REF, we get the
same infinite recursion.
Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for
trunk?
2010-11-05 Jakub Jelinek <jakub@redhat.com>
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.
Jakub