This is the mail archive of the gcc-bugs@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]

[Bug c++/50282] pointer-to-member cast works incorrectly


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50282

--- Comment #2 from zhuli <imzhuli at vip dot qq.com> 2011-09-03 11:31:57 UTC ---
I've never used any unint32_t tu hold any pointer-to-member, 
I just tested and find out the sizeof (pointer-to-member-function) is 16, 
then i used a pointer-to-uint32_t four times to dump the value of the
pointer-to-member, 32bits by 32bits.

According my understanding to the standard, this conversion should be valid, or
there must be any valid way . 

(In reply to comment #1)
> uint32_t isn't big enough to hold a pointer-to-member value, and that
> conversion isn't valid anyway


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