C++ PATCH for c++/46220 (overly strict covariant return checking)

Jason Merrill jason@redhat.com
Fri Mar 4 16:36:00 GMT 2011


When the pointer target type differs in a virtual override, the standard 
requires the type in the derived class method to be complete.  But that 
shouldn't be necessary if the types only differ in cv-quals; this seems 
like a wording bug, and EDG seems to agree.

Tested x86_64-pc-linux-gnu, applied to trunk.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 46220.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110304/4a7104a7/attachment.ksh>


More information about the Gcc-patches mailing list