Bug 13320 - 59: sorry, unimplemented: adjustingcompile error: sorry, unimplemented: adjusting pointers for covariant returns
Summary: 59: sorry, unimplemented: adjustingcompile error: sorry, unimplemented: adjus...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 3.3.1
: P2 normal
Target Milestone: 3.4.0
Assignee: Not yet assigned to anyone
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2003-12-05 20:34 UTC by David Jung
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Jung 2003-12-05 20:34:58 UTC
When trying to use a covariant return type, the compiler gives the following
error at compile time:

robot/sim/SimulatedBasicEnvironment:59: sorry, unimplemented: adjusting
   pointers for covariant returns

(a quick grep of the sources will turn up the offending code)

> g++ --version
g++ (GCC) 3.3.1 20030811 (Red Hat Linux 3.3.1-1)
Comment 1 Andrew Pinski 2003-12-05 20:38:14 UTC
Most likely fixed for 3.4.
See <http://gcc.gnu.org/bugs.html#missing>:
Covariant return types
Up to (and including) GCC 3.3 we did not implement non-trivial covariant returns. This has been 
addressed for GCC 3.4.
Comment 2 Andrew Pinski 2003-12-05 20:51:24 UTC
Fixed for 3.4.