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++/85765 - SFINAE and non-type default template arg.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
explicit4.C
blob
346a6e25908eb9f88ea1139ba17a06fe8cc4e5bf
1
// Negative explicit conv test.
2
// { dg-do compile { target c++11 } }
3
4
struct A {
5
A(const A&, int = 0); // { dg-message "note" }
6
};
7
struct B
8
{
9
explicit operator A();
10
};
11
12
int main()
13
{
14
B b;
15
(A(b)); // OK
16
(A(b,1)); // { dg-error "no match" }
17
}