URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [p807.C] - Rev 516
Compare with Previous | Blame | View Log
// { dg-do assemble }
// prms-id: 807
extern "C" int printf(const char*, ...);
class B;
class AX
{
protected:
int x;
public:
operator B();
};
class B
{
private:
int x;
public:
B(const AX&);
};
int foo(B& b); // { dg-error "" } referenced below
int main()
{
AX a;
foo(a); // { dg-error "" } Ambiguous B(a) or a.operator B() // See ARM 12.3.2
}