summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/typedef4.C
blob: 60fad0688580ff413b2a46d8d0b6f73f9b021615 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/27572
// { dg-do compile }

template<typedef> void foo();  // { dg-error "no type|typedef declaration|template" }

void bar()
{
  foo<int>();                  // { dg-error "matching" }
  // { dg-message "candidate" "candidate note" { target *-*-* } 8 }
}