This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/22604] [4.0/4.1 Regression] ICE after invalid covariant return


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-07-25 13:11 -------
Here's an example that only contains one error:

==============================================
struct A;

struct B
{
    virtual A* foo();
};

namespace N
{
    struct A : B
    {
        virtual A* foo(); // should be ::A*
    };
}
==============================================


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
           Keywords|                            |monitored
            Summary|[4.0/4.1 Regression]        |[4.0/4.1 Regression] ICE
                   |"internal compiler error"   |after invalid covariant
                   |after invalid covariant     |return
                   |return                      |


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]