[qfcc] Finish type decl for type_ref

I guess I'd wanted to avoid supporting automatic types in type
functions, but that broke long and unsigned int: either no type, or just
int, depending on the decl style.
This commit is contained in:
Bill Currie 2024-12-05 13:10:11 +09:00
parent a938f1c507
commit b4387cd881

View file

@ -1276,7 +1276,11 @@ type_list
;
type_ref
: type_ref_spec { $$ = new_type_expr ($1.type); }
: type_ref_spec
{
specifier_t spec = default_type ($1, 0);
$$ = new_type_expr (spec.type);
}
| CLASS_NAME { $$ = new_type_expr ($1->type); }
| TYPE_NAME
{