aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/copy1.C
blob: 3b45cc08386f8c557d6ae96f0505b441b4129d68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do compile }

// Origin: hkluender@otg.com

// PR 5189

struct A
{
  A(A&); // { dg-error "candidate" "" }
  template <class T> A(T); 
};

A a = 0; // { dg-error "no matching function|initializing" "" }