﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2756	OM reports an error in the C code it creates	massimo ceraolo	Mahder Alemseged Gebremedhin	"If I run (using OM r20199)  ""gridTest21"" of the enclosed package ""AutoCreateBug"" I get the following message:

{{{
""C:\Programmi\OpenModelica1.9.1Nightly\\MinGW\bin\mingw32-make.exe"" -f AutoCreateBug.gridTest21.makefile
gcc   -falign-functions -msse2 -mfpmath=sse     -I""C:/Programmi/OpenModelica1.9.1Nightly//include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o AutoCreateBug.gridTest21.o AutoCreateBug.gridTest21.c
AutoCreateBug.gridTest21.c: In function 'AutoCreateBug_gridTest21_eqFunction_27':
AutoCreateBug.gridTest21.c:458: error: expected expression before 'modelica_integer'
AutoCreateBug.gridTest21.c:458: error: expected ')' before '$Pi$rB$Pv'
AutoCreateBug.gridTest21.c:460: error: expected expression before 'modelica_integer'
AutoCreateBug.gridTest21.c:460: error: expected ')' before '$Pi$rB$Pv'
mingw32-make: *** [AutoCreateBug.gridTest21.o] Error 1
Compilation process exited with code 2
}}}

It seems that OM creates for this model a C file that is invalid.
"	defect	accepted	high	Future	Code Generation	trunk			Lennart Ochel Willi Braun
