C++ PATCH to build_over_call for c++/5995
Jason Merrill
jason@redhat.com
Mon Mar 18 08:51:00 GMT 2002
We don't need to suppress copy elision for empty classes if they have a
non-trivial copy constructor, as any copies will be done via said
constructor, which is presumably smart enough not to write on the padding.
Am I missing something?
Tested i686-pc-linux-gnu. Applied trunk, 3.0 and 3.1.
Fixes g++.other/empty1.C.
2002-03-18 Jason Merrill <jason@redhat.com>
PR c++/5995
* call.c (build_over_call): Fix empty class logic.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-patch
Size: 769 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20020318/8221d403/attachment.bin>
More information about the Gcc-patches
mailing list