summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/nontype-1.C
blob: 11bbfb829685b6e929796f348aaebe08a3a8590e (plain)
1
2
3
4
5
6
7
template <class Op>
bool asfun(Op f,
           Op::first_argument_type a, // { dg-error "not a type" }
           Op::second_argument_type b) // { dg-error "not a type" }
{
   return Op(a, b);
}