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
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
ambiguity1.C
blob
b0c37e1965dceabe99c04ed4e5774f6476df455f
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-error "" }
12
void myfunc (const B& t0); // { dg-error "" }
13
14
int main ()
15
{
16
myfunc(1); // { dg-error "" } ambiguous call
17
}