|
From: | Sergey Korshunoff |
Subject: | Re: [Tinycc-devel] [TIPS?] array in struct initialization w/o '{', case3 |
Date: | Sun, 8 Mar 2015 12:11:28 +0300 |
There is a code in the tccgen.c marked /* XXX: this test is incorrect for local initializers beginning with ( without {. It would be much more difficult to do it correctly (ideally, the expression parser should be used in all cases) */ This code is not executed for the OK cases. There is a patch attached which remove this code. A test files are attached too. A J compiler test is executed OK after this patch. Only one problem arises after this, it is an empty struct initialization. Any tips to solve this problem?
tcc-jcompiler.diff
Description: Text document
jcompiler-test.c
Description: Text Data
struct-test-ok.c
Description: Text Data
struct-test-fail.c
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |