OSDN Git Service

gcc/cp/
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / typedef4.C
1 // PR c++/27572
2 // { dg-do compile }
3
4 template<typedef> void foo();  // { dg-error "no type|typedef declaration|template" }
5
6 void bar()
7 {
8   foo<int>();                  // { dg-error "matching" }
9   // { dg-message "candidate" "candidate note" { target *-*-* } 8 }
10 }