OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [inherit/] [covariant19.C] - Blame information for rev 742

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/46220
2
// According to the letter of the standard this is invalid,
3
// but that seems like a bug.
4
 
5
class Baz;
6
class Foo {
7
public:
8
    virtual const Baz* getBaz() = 0;
9
};
10
class Bar : public Foo {
11
public:
12
    Baz* getBaz();
13
};
14
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.