[Bug c++/50282] pointer-to-member cast works incorrectly
imzhuli at vip dot qq.com
gcc-bugzilla@gcc.gnu.org
Sat Sep 3 11:32:00 GMT 2011
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
More information about the Gcc-bugs
mailing list