]> git.draconx.ca Git - cdecl99.git/blobdiff - src/parse-decl.c
libcdecl: Simplify mixed type name error condition.
[cdecl99.git] / src / parse-decl.c
index 6ab624e4f30d0a15acd29dd9f05e7fd616c46258..3137859708b5745d24ec489309efd97a0edfdd69 100644 (file)
@@ -514,8 +514,8 @@ static int do_postprocess(struct cdecl *decl, int english_mode)
                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;
                }