﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3967	Variable of matrix element accessed by enumeration value not replaced in C-Code	Patrick Täuber	Martin Sjölund	"Please consider the following model:

{{{#!mo
model foo
  Real x;
  parameter Real m[2]={1,2};
  type enum = enumeration(index1, index2);
equation
  x = m[enum.index1];
end foo;
}}}

It leads to the following compilation errors:

{{{
foo_06inz.c:50:54: error: use of undeclared identifier '$Pm$lB1$rB'
  data->localData[0]->realVars[0] /* x variable */ = $Pm$lB1$rB;

foo.c:105:54: error: use of undeclared identifier '$Pm$lB1$rB'
  data->localData[0]->realVars[0] /* x variable */ = $Pm$lB1$rB;
}}}
"	defect	closed	critical	Future	*unknown*		invalid		Adrian Pop
