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
Fix PR c++/69139 (deduction failure with trailing return type)
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
rv-cast4.C
blob
13f369d6108f8663ed48729d51028912af85674b
1
// PR c++/51161
2
// { dg-do compile { target c++11 } }
3
4
struct A{};
5
struct B : A{};
6
struct C : A{};
7
struct D : B, C{};
8
9
int main()
10
{
11
D d;
12
static_cast<A &&>(d); // { dg-error "ambiguous" }
13
}