re PR c++/20746 ([4.0 only] Incorrect return value for covariant return function...
authorNathan Sidwell <nathan@codesourcery.com>
Mon, 4 Apr 2005 17:45:16 +0000 (17:45 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 4 Apr 2005 17:45:16 +0000 (17:45 +0000)
commit38a37714e672206ae98b499861ec23eaff0909e0
treeb1c370ce6f0a73b8b6bd72c7bbb2a3dc0e3f62ff
parent6d6f2d0804ab464f43e5f20563948dc85542a50a
re PR c++/20746 ([4.0 only] Incorrect return value for covariant return function returning null ptr)

cp:
PR c++/20746
* method.c (use_thunk): Protect covariant pointer return
adjustments from NULL pointers.
testsuite:
PR c++/20746
* g++.dg/abi/covariant5.C: New.

From-SVN: r97557
gcc/cp/ChangeLog
gcc/cp/method.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/abi/covariant5.C [new file with mode: 0644]