static cp_declarator *make_call_declarator
(cp_declarator *, tree, cp_cv_quals, cp_virt_specifiers, cp_ref_qualifier,
- tree, tree, tree, tree, location_t);
+ tree, tree, tree, tree, tree, location_t);
static cp_declarator *make_array_declarator
(cp_declarator *, tree);
static cp_declarator *make_pointer_declarator
/* Make a declarator for the function given by TARGET, with the
indicated PARMS. The CV_QUALIFIERS apply to the function, as in
"const"-qualified member function. The EXCEPTION_SPECIFICATION
- indicates what exceptions can be thrown. */
+ indicates what exceptions can be thrown. STD_ATTRS contains
+ attributes that appertain to the function type. */
cp_declarator *
make_call_declarator (cp_declarator *target,
tree exception_specification,
tree late_return_type,
tree requires_clause,
+ tree std_attrs,
location_t parens_loc)
{
cp_declarator *declarator;
else
declarator->parameter_pack_p = false;
+ declarator->std_attributes = std_attrs;
+
return declarator;
}
exception_spec,
return_type,
trailing_requires_clause,
+ std_attrs,
UNKNOWN_LOCATION);
- declarator->std_attributes = std_attrs;
fco = grokmethod (&return_type_specs,
declarator,
exception_specification,
late_return,
requires_clause,
+ attrs,
parens_loc);
- declarator->std_attributes = attrs;
declarator->attributes = gnu_attrs;
/* Any subsequent parameter lists are to do with
return type, so are not those of the declared