blob: 6fda9d27ac95ad02a6bd83e15fbb557ad19a084f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// { dg-do assemble }
class A
{
public:
A (const A& ccref);
friend A const re (const A& v1); // { dg-error "ambiguates" }
};
A // const
re (const A& ref) // { dg-error "new declaration" }
{
return A (ref);
}
|