﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1287	Codegen for single array element	Willi Braun	Willi Braun	"small model that fails:
{{{model smallArray
  parameter Boolean a[:] = {false};
  Boolean out[size(a,1)];
algorithm
  for i in 1:size(a,1) loop
    if a[i] then
      out[i] := true;
    else
      out[i] := false;
    end if;
  end for;
end smallArray;
}}}
with following error message:
{{{smallArray.cpp: In function ‘int functionDAE_output2()’:
smallArray.cpp:464: error: ‘OTHER_ASUB’ was not declared in this scope
smallArray.cpp: In function ‘int function_updateDependents()’:
smallArray.cpp:597: error: ‘OTHER_ASUB’ was not declared in this scope
smallArray.cpp: In function ‘int function_updateDepend(int&)’:
smallArray.cpp:629: error: ‘OTHER_ASUB’ was not declared in this scope}}}If the the array is set up with two elements 
{{{

(e.g. a[:] = {false,true}; ) }}}then the model is compilable."	defect	closed	high		Code Generation	1.6.0	fixed		Willi Braun
