www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.internals - CTFE error in druntime when separating the semantic routines in the

reply RazvanN <razvan.nitu1305 gmail.com> writes:
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
Jul 21 2017
parent reply RazvanN <razvan.nitu1305 gmail.com> writes:
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
Jul 21 2017
parent Stefan Koch <uplink.coder googlemail.com> writes:
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.
Jul 21 2017