Thread overview
CTFE error in druntime when separating the semantic routines in the compiler
Jul 21, 2017
RazvanN
Jul 21, 2017
RazvanN
Jul 21, 2017
Stefan Koch
July 21, 2017
Hi guys,

I was working on separating the semantic routines from the AST nodes and I started with the Initializer AST nodes. The separating went pretty smooth and at this point I can compile the compiler with the new code organization but I am getting a ctfe error when compiling druntime :

src/gc/impl/conservative/gc.d(1599): Error: cannot determine length of binsize at compile time
src/gc/impl/conservative/gc.d(1605):        called from here: ctfeBins()

I have little to 0 knowledge about CTFE so if anybody has any idea on what could be the problem, please take a look at:

https://github.com/dlang/dmd/pull/7007

Thank you,
RazvanN
July 21, 2017
On Friday, 21 July 2017 at 08:45:32 UTC, RazvanN wrote:
> Hi guys,
>
> I was working on separating the semantic routines from the AST nodes and I started with the Initializer AST nodes. The separating went pretty smooth and at this point I can compile the compiler with the new code organization but I am getting a ctfe error when compiling druntime :
>
> src/gc/impl/conservative/gc.d(1599): Error: cannot determine length of binsize at compile time
> src/gc/impl/conservative/gc.d(1605):        called from here: ctfeBins()
>
> I have little to 0 knowledge about CTFE so if anybody has any idea on what could be the problem, please take a look at:
>
> https://github.com/dlang/dmd/pull/7007
>
> Thank you,
> RazvanN

Nevermind. I found the problem. Sorry for spam
July 21, 2017
On Friday, 21 July 2017 at 10:05:58 UTC, RazvanN wrote:
> On Friday, 21 July 2017 at 08:45:32 UTC, RazvanN wrote:
>> Hi guys,
>>
>> I was working on separating the semantic routines from the AST nodes and I started with the Initializer AST nodes. The separating went pretty smooth and at this point I can compile the compiler with the new code organization but I am getting a ctfe error when compiling druntime :
>>
>> src/gc/impl/conservative/gc.d(1599): Error: cannot determine length of binsize at compile time
>> src/gc/impl/conservative/gc.d(1605):        called from here: ctfeBins()
>>
>> I have little to 0 knowledge about CTFE so if anybody has any idea on what could be the problem, please take a look at:
>>
>> https://github.com/dlang/dmd/pull/7007
>>
>> Thank you,
>> RazvanN
>
> Nevermind. I found the problem. Sorry for spam

Pleas state what the problem was , it might be useful to know.