http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48446
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |4.7.0
--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> 2011-04-14
15:22:41 UTC ---
This is now fixed for 4.7.0. The fix seems reasonably safe to backport since
it only affects bounds expressions with side-effects, but it also seems easy to
work around in user code: just factor out the bounds expression into a local
variable.