PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / overload / conv-op1.C
blobabcd7413b1f881aeabe8215969d9f137b0b38835
1 // PR c++/47703
3 typedef void (*pfn)(int &);
5 struct A
7   operator pfn() { return 0; }
8 };
10 void f()
12   const int i = 42;
13   A()(i);                       // { dg-message "<conversion>" }
14   // { dg-error "qualifiers" "" { target *-*-* } .-1 }
17 // { dg-prune-output "no match" }