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
/
conv-op1.C
blob
abcd7413b1f881aeabe8215969d9f137b0b38835
1
// PR c++/47703
2
3
typedef void (*pfn)(int &);
4
5
struct A
6
{
7
operator pfn() { return 0; }
8
};
9
10
void f()
11
{
12
const int i = 42;
13
A()(i); // { dg-message "<conversion>" }
14
// { dg-error "qualifiers" "" { target *-*-* } .-1 }
15
}
16
17
// { dg-prune-output "no match" }