This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Help understanding overloaded templates


Hi,

I was wondering if anyone could help me make sense of the
more_specialized_fn() function in pt.c (line 13281).

Specifically, I am trying to understand what each of the are:

  tree decl1 = DECL_TEMPLATE_RESULT (pat1);
  tree targs1 = make_tree_vec (DECL_NTPARMS (pat1));
  tree tparms1 = DECL_INNERMOST_TEMPLATE_PARMS (pat1);
  tree args1 = TYPE_ARG_TYPES (TREE_TYPE (decl1));

and how the function is supposed to deal with variadic functions in
terms of these. That is to say, if a function is variadic, how is that
represented in these data structures?

Any help is much appreciated.

Thanks.
Rob


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]