Commit bf3e8283 by Gabriel Dos Reis Committed by Gabriel Dos Reis

re PR c++/14085 (when compiling template functors)

        PR c++/14085
        * error.c (dump_decl): Handle TEMPLATE_TYPE_PARM.

From-SVN: r77852
parent 68776c43
2004-02-15 Gabriel Dos Reis <gdr@integrable-solutions.net>
PR c++/14085
* error.c (dump_decl): Handle TEMPLATE_TYPE_PARM.
2004-02-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/13635
......
......@@ -940,6 +940,13 @@ dump_decl (tree t, int flags)
dump_expr (t, flags);
break;
case TEMPLATE_TYPE_PARM:
if (flags & TFF_DECL_SPECIFIERS)
pp_cxx_declaration (cxx_pp, t);
else
pp_type_id (cxx_pp, t);
break;
default:
pp_unsupported_tree (cxx_pp, t);
/* Fall through to error. */
......
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" }
{ // { dg-error "no type" }
return Op(a, b);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment