summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/conversion/cast2.C
blob: ac8329730ea66b3a0b6bccbcff9369263ce70aa0 (plain)
1
2
3
4
5
6
7
8
9
// Origin: PR c++/42260
// { dg-do compile }

struct A
{
      template<typename T> operator T*();
};

int i = *A();// { dg-error "no match" }