Opened 13 years ago

Last modified 13 years ago

#1587 closed defect (fixed)

syntax error from makefile

Reported by: jlettau Owned by: jlettau
Priority: blocker Milestone:
Component: Version:
Keywords: Cc: jlettau,

Description

Hello, when running the makefile of the following code, I get the below:

function allTrue "Are all entries of a boolean vector true?"
  input Boolean vec[:];
  output Boolean alltrue;
 algorithm
   alltrue:=true;
   for i in 1:size(vec, 1) loop
     alltrue:=alltrue and vec[i];
   end for;
end allTrue;

model synbug
  parameter Integer nOut = 0;
  parameter Integer n = 0;
  Boolean b;
  Boolean b1 = false;
  Boolean b2[n];
 equation
    b=if nOut==0 then b1 else allTrue(b2);
end synbug;
make -f synbug.makefile
c  -O3 -falign-functions -msse2 -mfpmath=sse   -I"F:/workspace/OpenModelica/build//include/omc" -I.
nbug.c: In function `bound_parameters':
nbug.c:332: error: syntax error before ')' token
ke: *** [synbug.o] Error 1

Change History (1)

comment:1 by Martin Sjölund, 13 years ago

Works in trunk r9599

Note: See TracTickets for help on using tickets.