From fd33450dba11c286f1af770098ccdf6b2208433e Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Tue, 19 Jul 2011 19:10:00 -0400 Subject: [PATCH] Combine English specifiers properly. If $1 is NULL in post_specs, then $3 won't get attached to the list. --- src/parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse.y b/src/parse.y index 8764159..32ee5a7 100644 --- a/src/parse.y +++ b/src/parse.y @@ -449,7 +449,7 @@ type_qual_specs: { $$ = NULL; } | type_qual_spec type_qual_specs { post_specs: qualifiers typespec type_qual_specs { $$ = $2; $$->next = $1; - for (struct cdecl_declspec *s = $1; s; s = s->next) { + for (struct cdecl_declspec *s = $$; s; s = s->next) { if (!s->next) { s->next = $3; break; -- 2.43.2