[tree-ssa] PATCH to ocp_convert

Jason Merrill jason@redhat.com
Thu Apr 3 20:05:00 GMT 2003

The recent inliner change to convert the (promoted) argument back to the
parm type breaks on some classes because ocp_convert is suspicious of
the idea of applying a NOP to an lvalue.  But in this case we're not
interested in an lvalue, so the abort is inappropriate.  This patch
restricts the abort to types with copy constructors, which need to be
handled specially.

Tested i686-pc-linux-gnu.  Applied to trunk and tree-ssa branch.

2003-04-02  Jason Merrill  <jason@redhat.com>

	* cvt.c (ocp_convert): Only abort if we try to convert an object

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

More information about the Gcc-patches mailing list