C++ PATCH for c++/56104 (bogus warning with pointer to member function)

Jason Merrill jason@redhat.com
Fri Jan 25 17:57:00 GMT 2013


We were getting type-punning warnings while building up code to 
dereference a pointer to member function because the compiler can see 
that the complete object doesn't have a vtable.  In such cases, we can 
also see that and avoid building up that code in the first place.

Tested x86_64-pc-linux-gnu, applying to trunk.  I'm inclined not to 
apply it to 4.7, since it's just a bogus warning.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 56104.patch
Type: text/x-patch
Size: 4695 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130125/0662a3ef/attachment.bin>


More information about the Gcc-patches mailing list