OSDN Git Service

3868d748c0eae624100208387b5a7c9bb282c626
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / conversion / cast2.C
1 // Contributed by Dodji Seketeli <dodji@redhat.com>
2 // Origin: PR c++/42260
3 // { dg-do compile }
4
5 struct A
6 {
7       template<typename T> operator T*();
8 };
9
10 int i = *A();// { dg-error "no match" }
11