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
[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
expr
/
cond11.C
blob
6f91cf917ac8a68acd3a00123a6fa00439e18886
1
struct A;
2
struct C
3
{
4
operator A();
5
};
6
7
struct A
8
{
9
A(C);
10
};
11
12
extern A a;
13
extern C c;
14
15
void
16
foo (bool b)
17
{
18
b ? c : a; // { dg-error "?:" }
19
// { dg-message "ambiguous" "" { target *-*-* } .-1 }
20
}