Patch for C++ uninitialized pointer-to-member value
Alexandre Oliva
aoliva@redhat.com
Mon May 13 03:41:00 GMT 2002
On May 13, 2002, Alexandre Oliva <aoliva@redhat.com> wrote:
> On May 13, 2002, Jason Merrill <jason@redhat.com> wrote:
>>> Ok. I didn't find a nice way to merge the code from
>>> build_default_init into it, thought. Is this ok?
>> Much of build_default_init can be moved to build_forced_zero_init and
>> replaced with a call; only the NEEDS_CONSTRUCTING and reference cases need
>> to be retained.
> Yeah, but then I'd have to remove the sanity check from
> build_forced_zero_init(), that is supposed to catch types that don't
> really need forced zero initialization. Besides,
> build_forced_zero_init() does not handle ENUMERAL_TYPEs, so it would
> call digest_init() an initializer of the wrong type, unless I moved
> this handling into forced_zero_init().
> Is this what you have in mind?
I've just tested this patch. Ok to install?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cp-null-pm-init-take3.patch
Type: text/x-patch
Size: 15279 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20020513/8f42c468/attachment.bin>
-------------- next part --------------
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
More information about the Gcc-patches
mailing list