[M3devel] A bug in M3C
Rodney M. Bates
rodney_bates at lcwb.coop
Fri Feb 7 16:53:30 CET 2014
"No hurry", said the carpenter.
On 02/07/2014 04:31 AM, Jay K wrote:
> 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
> >
> > Jay,
> >
> > 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.
More information about the M3devel
mailing list