<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Sorry, I am here, but really busy...<br><br><br><br> <BR><div>> Date: Tue, 4 Feb 2014 17:43:58 -0600<br>> From: rodney_bates@lcwb.coop<br>> To: m3devel@elegosoft.com<br>> Subject: [M3devel] A bug in M3C<br>> <br>> Jay,<br>> <br>> The attached M3 program compiles using cm3cg on AMD64_LINUX.<br>> Using M3C, it generates C code that the C compiler chokes on:<br>> <br>> rodney@allegheny:~/proj/m3/exp/m3cbug1/src$ cm3 -keep<br>> --- building in ../AMD64_LINUX ---<br>> <br>> new source -> compiling Test.m3<br>> ../src/Test.m3: In function ‘Test__P’:<br>> ../src/Test.m3:12: error: aggregate value used where an integer was expected<br>> compile_c => 1<br>> C compiler failed compiling: Test.m3.c<br>> compilation failed => not building program "test"<br>> Fatal Error: package build failed<br>> <br>> A much larger program from which this case is reduced suffers the same problem<br>> compiling the equivalent code using M3C, but compiles and executes as expected<br>> using cm3cg.<br>> <br>> Removing or simplifying the IF statement makes it go away.<br></div> </div></body>
</html>