﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5603	OMEdit crashes on opening record with array creation in ternary operator	robert.sandmann@…	Adrian Pop	"Dear developer team,

when I open the following two files:
`ErrorRecord.mo`

{{{#!mo
record ErrorRecord
  parameter Boolean someBool = true;
  final parameter Real someValue = 0.05;
  parameter SimpleRecord simpleRecord(recordValue1 = someValue - simpleRecord.recordValue2);
  final parameter Real[1] crash = if true then {1} else array(simpleRecord.recordValue2 for i in 1:1) annotation (Dialog(enable=someBool));
end ErrorRecord;
}}}

and
`SimpleRecord.mo`

{{{#!mo
record SimpleRecord
  parameter Real recordValue1 = 1;
  parameter Real recordValue2 = 1;
end SimpleRecord;
}}}

in OMEdit and I double click on `ErrorRecord.mo`, OMEdit crashes.
Oddly enough, if I change some things in `ErrorRecord.mo`, OMEdit doesn't crash. Those changes are:

* line 4: Change `enable=someBool` to `enable=true` in the annotation
* line 4: Remove the annotation alltogether
* line 5: Remove the definition of `recordValue`
* line 5: Remove `someValue` from the definition of `recordValue`

Can you reproduce this behaviour? I'm using the new frontend with {{{-d=newInst}}}

Any help is much appreciated!"	defect	accepted	critical	Future	Frontend	v1.14.0-dev-nightly			
