"List item X is either not the first or not the last item" is just a
very complicated way to say "the list has more than one item".
if (!valid_declspecs(i, true))
return 0;
if (!valid_declspecs(i, true))
return 0;
- if (cdecl_is_abstract(i->declarators)
- && (i != decl || i->next)) {
+ if (decl->next && cdecl_is_abstract(i->declarators)) {
+ /* Abstract full declarators: there can only be one. */
cdecl__errmsg(CDECL__EDECLTYPE);
return 0;
}
cdecl__errmsg(CDECL__EDECLTYPE);
return 0;
}