﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3120	XML code generation can not handle record assignments in algorithm section	anonymous	somebody	"{{{
#!mo
model Bug
  record BugRecord
    Integer x;
  end BugRecord;
  BugRecord bugRecord;
initial equation
  bugRecord = BugRecord(0);
algorithm
  when time > 0.5 then
    bugRecord := BugRecord(1);
  end when;
end Bug;
}}}

You can generate C code and it works. But XML code generation is broken.

'''$ omc -s --simCodeTarget=XML Bug.mo'''
Error processing file: Bug.mo
[CodegenXML.tpl:2148:14-2148:14:writable] Error: Template error: Unknown expression: Bug.BugRecord(1)

# Error encountered! Exiting...
# Please check the error message and the flags."	defect	assigned	high	Future	Code Generation	trunk			
