re PR c++/14803 (Spurious warnings on conversion of pointers to member functions)
authorMark Mitchell <mark@codesourcery.com>
Thu, 1 Apr 2004 23:14:55 +0000 (23:14 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 1 Apr 2004 23:14:55 +0000 (23:14 +0000)
commite86327772eaa1f4b2c352a411afa195b30ff0c8f
tree791f1d30b9cc0f6bac96afe52db612b56b08118a
parent717415adaf2c79665b540000ca3203abaddc7629
re PR c++/14803 (Spurious warnings on conversion of pointers to member functions)

PR c++/14803
* typeck.c (get_delta_difference): Call fold before returning the
value.

PR c++/14803
* g++.dg/inherit/ptrmem1.C: New test.

From-SVN: r80331
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/inherit/ptrmem1.C [new file with mode: 0644]