[C++] PATCH to build_modify_expr for c++/13371

Jason Merrill jason@redhat.com
Fri Dec 19 20:38:00 GMT 2003


PR 13371 was caused by reusing the lhs of an assignment without properly
stabilizing it.  The particular failure in 13371 was exposed by the patch
mentioned in the PR, but the underlying bug goes back at least to 3.0; we
were stabilizing lhs without updating the copy in olhs, so the
stabilization didn't really work properly.  Fixed thus.

Tested i686-pc-linux-gnu, applied to trunk and 3.3.  Test in
g++.dg/init/bitfield2.C.

2003-12-19  Jason Merrill  <jason@redhat.com>

	PR c++/13371
	* typeck.c (build_modify_expr): Stabilize lhs if we're narrowing.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-patch
Size: 1877 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20031219/41e6a428/attachment.bin>


More information about the Gcc-patches mailing list