This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch for C++ uninitialized pointer-to-member value


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]