repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove outermost loop parameter.
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
ambiguity1.C
blob
ddf93c4bdae8bfa831ee7eb478fec99b3387ff9d
1
// { dg-do assemble }
2
// GROUPS passed ambiguity
3
struct A {
4
A (int);
5
};
6
7
struct B {
8
B (int);
9
};
10
11
void myfunc (const A& t0); // { dg-message "candidates" }
12
void myfunc (const B& t0); // { dg-message "note" }
13
14
int main ()
15
{
16
myfunc(1); // { dg-error "ambiguous" }
17
}