repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
conversion
/
ambig2.C
blob
a9d9d699cf0e6da1d11cd98e2fda8bc5cb63c65a
1
// PR c++/57948
2
3
struct Base { };
4
struct Derived : Base
5
{
6
struct Derived2 : Base
7
{
8
struct ConvertibleToBothDerivedRef
9
{
10
operator Derived&();
11
operator Derived2&();
12
void bind_lvalue_to_conv_lvalue_ambig(ConvertibleToBothDerivedRef both)
13
{
14
Base &br1 = both; // { dg-error "ambiguous" }
15
}
16
};
17
};
18
};