[M3devel] A bug in M3C
jay.krell at cornell.edu
Fri Feb 7 11:31:37 CET 2014
Sorry, I am here, but really busy...
> Date: Tue, 4 Feb 2014 17:43:58 -0600
> From: rodney_bates at lcwb.coop
> To: m3devel at elegosoft.com
> Subject: [M3devel] A bug in M3C
> The attached M3 program compiles using cm3cg on AMD64_LINUX.
> Using M3C, it generates C code that the C compiler chokes on:
> rodney at allegheny:~/proj/m3/exp/m3cbug1/src$ cm3 -keep
> --- building in ../AMD64_LINUX ---
> new source -> compiling Test.m3
> ../src/Test.m3: In function ‘Test__P’:
> ../src/Test.m3:12: error: aggregate value used where an integer was expected
> compile_c => 1
> C compiler failed compiling: Test.m3.c
> compilation failed => not building program "test"
> Fatal Error: package build failed
> A much larger program from which this case is reduced suffers the same problem
> compiling the equivalent code using M3C, but compiles and executes as expected
> using cm3cg.
> Removing or simplifying the IF statement makes it go away.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the M3devel