public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/20746] New: Incorrect return value for covariant return function returning null ptr
@ 2005-04-04 14:25 yanliu at ca dot ibm dot com
  2005-04-04 14:26 ` [Bug c++/20746] " pinskia at gcc dot gnu dot org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: yanliu at ca dot ibm dot com @ 2005-04-04 14:25 UTC (permalink / raw)
  To: gcc-bugs

Using g++3.4.3 (gcc version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)) to compile a 
testcase with covariant return types. In the testcase, the covariant function 
C::l() returns a null pointer, g++3.4.3 does the return value adjustment and 
returns a non-null return value ( which is incorrectly).
Here is the steps to reproduce the problem and the execution result:
>g++ t.C
>a.out 
in C* C::l
cp=0x8

-- 
           Summary: Incorrect return value for covariant return function
                    returning null ptr
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: yanliu at ca dot ibm dot com
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20746


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2005-07-12 11:31 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-04 14:25 [Bug c++/20746] New: Incorrect return value for covariant return function returning null ptr yanliu at ca dot ibm dot com
2005-04-04 14:26 ` [Bug c++/20746] " pinskia at gcc dot gnu dot org
2005-04-04 14:35 ` pinskia at gcc dot gnu dot org
2005-04-04 14:39 ` pinskia at gcc dot gnu dot org
2005-04-04 14:43 ` nathan at gcc dot gnu dot org
2005-04-04 17:24 ` nathan at gcc dot gnu dot org
2005-04-04 17:37 ` pinskia at gcc dot gnu dot org
2005-04-04 17:37 ` yanliu at ca dot ibm dot com
2005-04-04 17:45 ` cvs-commit at gcc dot gnu dot org
2005-04-22  5:11 ` pinskia at gcc dot gnu dot org
2005-06-30 21:00 ` scp at predict dot com
2005-07-01 11:39 ` nathan at gcc dot gnu dot org
2005-07-05 15:40 ` mmitchel at gcc dot gnu dot org
2005-07-06 21:47 ` scp at predict dot com
2005-07-06 22:35 ` [Bug c++/20746] [4.0 only] " giovannibajo at libero dot it
2005-07-12 11:30 ` cvs-commit at gcc dot gnu dot org
2005-07-12 11:31 ` nathan at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).