tree basebinfo = NULL_TREE;
int dtor = 0;
+ /* class templates can come in as TEMPLATE_DECLs here. */
if (TREE_CODE (name) != IDENTIFIER_NODE)
return name;
return NULL_TREE;
else if (TREE_CODE (decl) == TREE_LIST)
{
+ /* Assume that the class is the only declspec. */
decl = TREE_VALUE (decl);
if (IS_AGGR_TYPE (decl) && CLASSTYPE_TEMPLATE_INFO (decl))
{
template = DECL_TI_TEMPLATE (template);
}
+ /* FIXME deal with partial specializations of member templates. */
t = most_specialized_class
(DECL_TEMPLATE_SPECIALIZATIONS (template), args);
if (PRIMARY_TEMPLATE_P (t))
TREE_TYPE (DECL_INNERMOST_TEMPLATE_PARMS (tmpl)) = tmpl;
+ /* FIXME deal with partial specializations. */
if (TREE_CODE (decl) == TYPE_DECL)
return tmpl;