[3.3] C++ PATCH to build_modify_expr for 11063

Jason Merrill jason@redhat.com
Tue Oct 14 20:44:00 GMT 2003


In the testcase we have a compound literal initializer for an array member
which doesn't match the type of the member.  Rather than abort, we can try
and fail to convert.

Tested x86_64-pc-linux-gnu, applied to trunk and 3.3.

Test in g++.dg/ext/complit1.C.

2003-10-14  Jason Merrill  <jason@redhat.com>

	PR c++/11063
	* typeck.c (build_modify_expr): Call convert rather than abort.

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


More information about the Gcc-patches mailing list