The following code:
module test;
import stdio;
public func int32 main () {
const uint64[2] Dims = {2, 3}
float32[Dims[0]][Dims[1]] p;
p[0][0] = 1;
p[0][1] = 2;
stdio.printf ("%g %g", p[0][0], p[0][1]);
return 0;
}
causes the following error:
c2c: /home/shiv/c2compiler/c2c/CGenerator/CCodeGenerator.cpp:485: void C2::CCodeGenerator::EmitDecl(const C2::Decl *, C2::StringBuilder &): Assertion `D' failed.
Aborted (core dumped)
Not sure what Assert 'D' is?
Thanks.
--shiv--