﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6432	Variable not found in foriter loop scope	dariomangoni@…	Per Östlund	"

The following line (please look at the `r_shape[1:3, pt_sel + 1]` part):
{{{
{Modelica.Math.Vectors.norm(r_shape[1:3, pt_sel + 1] - r_shape[:, pt_sel]) for pt_sel in 1:ptsCount - 1}
}}}
triggers the following error
{{{
[1] 20:21:21 Translation Error
[PolyBeamShape: 5:3-5:145]: Variable r_shape[{1, 2, 3},1 + pt_sel,1] not found in scope PolyBeamShape.$foriter loop scope$.


[6] 20:21:21 Translation Error
[CodegenCFunctions.tpl: 5359:11-5359:11]: Template error: indexSubs got different number of dimensions and subscripts.

[7] 20:21:21 Translation Error
[C:/OM117/OM64bit/OMCompiler/Compiler/SimCode/SimCodeMain.mo: 478:7-478:78]: Internal error D:\OpenModelica\bin\OMEdit.exe: [unknown function name] failed
}}}

However, if you remove the `1:3` index selector and you just leave `:` the code compiles just fine
"	defect	closed	normal	1.18.0	New Instantiation	v1.17.0-dev	wontfix		
