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 } }