Opened 10 years ago

Last modified 10 years ago

#3120 assigned defect

XML code generation can not handle record assignments in algorithm section

Reported by: anonymous Owned by: somebody
Priority: high Milestone: Future
Component: Code Generation Version: trunk
Keywords: Cc:

Description

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.

Change History (2)

comment:1 by anonymous, 10 years ago

Component: UnknownCode Generation
Owner: changed from somebody to Lennart Ochel
Summary: XML code generation can not handle record assignment in algorithm sectionXML code generation can not handle record assignments in algorithm section

comment:2 by Lennart Ochel, 10 years ago

Owner: changed from Lennart Ochel to somebody
Status: newassigned
Note: See TracTickets for help on using tickets.