Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
crash3.C
blob: 62b9e21f5dd22cb3593a34beb45af0daed589a6b [
file
] [
log
] [
blame
]
// PR c++/51326
struct
A
{
virtual
int
&
foo
();
// { dg-message "overridden" }
};
struct
B
:
A
{
B
&
foo
();
// { dg-error "conflicting return type" }
};