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++/81917 - ICE with void_t and partial specialization.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
overload
/
ambig3.C
blob
01d4cc632868892ba05f7c9ac37b6872ce14afe7
1
// PR c++/77563
2
3
struct A {
4
A(int) {}
5
A(unsigned) {} // Comment to make it work
6
7
explicit A(long) {} // Comment to make it work
8
};
9
10
void f(A) { }
11
12
int main() {
13
f(2);
14
f(3l); // { dg-error "ambiguous" }
15
}