﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3315	ParModelica generating broken code for minimal testcase	Gustaf Thorslund	Mahder Alemseged Gebremedhin	"{{{#!mo
class null
end null;
}}}

{{{#!bash
build$ omc -g=ParModelica ../null.mo -s
class null
end null;
}}}

{{{#!bash
build$ make -f null.makefile 
g++   -fPIC -O0 -falign-functions -march=native     -I""/home/gustaf/src/OpenModelica/build/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o null.o null.c
In file included from /home/gustaf/src/OpenModelica/build/include/omc/c/openmodelica_func.h:44:0,
                 from null.c:5:
/home/gustaf/src/OpenModelica/build/include/omc/c/simulation_data.h:48:71: error: invalid conversion from ‘const void*’ to ‘modelica_string {aka void*}’ [-fpermissive]
 #define omc_dummyRealAttribute {"""","""","""",DBL_MAX,DBL_MIN,0,0,1.0,0,0.0}
                                                                       ^
null_12jac.h:2:51: note: in expansion of macro ‘omc_dummyRealAttribute’
 static const REAL_ATTRIBUTE dummyREAL_ATTRIBUTE = omc_dummyRealAttribute;
                                                   ^
/home/gustaf/src/OpenModelica/build/include/omc/c/simulation_data.h:48:71: error: invalid conversion from ‘const void*’ to ‘modelica_string {aka void*}’ [-fpermissive]
 #define omc_dummyRealAttribute {"""","""","""",DBL_MAX,DBL_MIN,0,0,1.0,0,0.0}
                                                                       ^
null_12jac.h:2:51: note: in expansion of macro ‘omc_dummyRealAttribute’
 static const REAL_ATTRIBUTE dummyREAL_ATTRIBUTE = omc_dummyRealAttribute;
                                                   ^
/home/gustaf/src/OpenModelica/build/include/omc/c/simulation_data.h:48:71: error: invalid conversion from ‘const void*’ to ‘modelica_string {aka void*}’ [-fpermissive]
 #define omc_dummyRealAttribute {"""","""","""",DBL_MAX,DBL_MIN,0,0,1.0,0,0.0}
                                                                       ^
null_12jac.h:2:51: note: in expansion of macro ‘omc_dummyRealAttribute’
 static const REAL_ATTRIBUTE dummyREAL_ATTRIBUTE = omc_dummyRealAttribute;
                                                   ^
<builtin>: recipe for target 'null.o' failed
make: *** [null.o] Error 1
}}}

Test case same as closed #3190, while error appears to be same/similar to #3198.

Some kind of minimal regression tests for ParModelica would really be useful, to avoid bugs like this one..."	defect	closed	high	1.9.4	ParModelica	trunk	fixed	regression	Adrian Pop
