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
/
explicit6.C
blob
18f31b42d594c707e30e6d5a09ce75173dea57cf
1
// PR c++/47080
2
// { dg-options "" }
3
// { dg-do compile { target c++11 } }
4
5
struct A {
6
explicit operator int(); // { dg-message "qualification conversion" }
7
};
8
9
int main() {
10
bool b((A())); // { dg-error "invalid user-defined" }
11
!A(); // { dg-error "" }
12
}