This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50282] pointer-to-member cast works incorrectly
- From: "imzhuli at vip dot qq.com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 03 Sep 2011 11:31:57 +0000
- Subject: [Bug c++/50282] pointer-to-member cast works incorrectly
- Auto-submitted: auto-generated
- References: <bug-50282-4@http.gcc.gnu.org/bugzilla/>
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