This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch for C++ uninitialized pointer-to-member value
- From: Jason Merrill <jason at redhat dot com>
- To: <jessica at cup dot hp dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 05 Apr 2002 21:36:16 +0100
- Subject: Re: Patch for C++ uninitialized pointer-to-member value
- References: <001901c1dcdb$c1f8ef70$8b63f40f@JH761542>
>>>>> "Jessica" == Jessica Han <jessica@cup.hp.com> writes:
> I am sorry that I forgot to mention, the pointer is static.
Ah, yes, an uninitialized static pointer to member should be initialized to
-1. So you need to check TREE_STATIC as well. Also, please handle this in
check_initializer rather than start_decl.
Jason