scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit eb615c0eb2360e33a9ebdf5febb5bc7116ffd672
parent bc3aaa77fad7f68fe71543a83a0f4978bf30f421
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri,  4 Nov 2022 05:22:12 +0100

cc1: Decay compount literals

Compound literals can define array types that must be decayed
before going further in the parsing.

Diffstat:
Msrc/cmd/cc/cc1/expr.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cmd/cc/cc1/expr.c b/src/cmd/cc/cc1/expr.c @@ -880,7 +880,7 @@ cast(void) expect(')'); if (yytoken == '{') - return initlist(tp); + return decay(initlist(tp)); switch (tp->op) { case ARY: