From b3fd91158524dac377ddb756f44f8e3fe67d9cea Mon Sep 17 00:00:00 2001 From: lemon Date: Sun, 7 Aug 2022 18:43:54 +0200 Subject: allow def inside aggregate --- bootstrap/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bootstrap/parse.c') diff --git a/bootstrap/parse.c b/bootstrap/parse.c index 99560d8..5019c50 100644 --- a/bootstrap/parse.c +++ b/bootstrap/parse.c @@ -2423,7 +2423,7 @@ aggdeclyield(struct decl *decl, void *arg) { if (decl->t == Dtype && decl->ty == a->aggty) ; - else if (decl->t == Dfn && !decl->externp) + else if ((decl->t == Dfn && !decl->externp) || decl->t == Ddef) vec_push(a->decls, decl); else fatal(a->P, decl->span, "this kind of declaration is disallowed inside aggregates"); -- cgit v1.2.3