C++ PATCHes for inheriting ctor issues

Jason Merrill jason@redhat.com
Mon Nov 19 13:53:00 GMT 2012


When I implemented inheriting constructors, I thought that the wording 
that said that base copy/move constructors are not inherited was a 
wording problem, but discussion on the reflector indicates that it was 
intended, so that wrapper classes act like strong typedefs rather than 
drop-in replacements.  So the first patch implements that.

In 55261 we were using CLASSTYPE_CONSTRUCTORS while the type still had 
undeclared lazy constructors, so we need to use lookup_fnfields to get 
the lazy declarations.

For 55262 we need to set DECL_PARM_INDEX on the inherited parameters.

Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: inherit-copy.patch
Type: text/x-patch
Size: 1760 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20121119/56d82fef/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 55261.patch
Type: text/x-patch
Size: 1124 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20121119/56d82fef/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 55262.patch
Type: text/x-patch
Size: 1201 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20121119/56d82fef/attachment-0002.bin>


More information about the Gcc-patches mailing list