re PR c++/56104 (Wrong "dereferencing type-punned pointer" warning)
authorJason Merrill <jason@redhat.com>
Fri, 25 Jan 2013 17:55:09 +0000 (12:55 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 25 Jan 2013 17:55:09 +0000 (12:55 -0500)
commite18724aa469909d34a3bc795aee7dbfb43234f8c
tree5e2df0316d27809d43a8136fcd1dfb5585f1bac9
parentb7d7d917bd3ec775d21abfe4eab582de3cf461c7
re PR c++/56104 (Wrong "dereferencing type-punned pointer" warning)

PR c++/56104
* typeck.c (get_member_function_from_ptrfunc): Optimize if the
dynamic type has no virtual functions.

From-SVN: r195470
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/g++.dg/warn/pmf2.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.mike/pmf1.C