﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4385	Operator ^ fails, depending on the used data types	jens.schoenbohm@…	Martin Sjölund	"The exponentiation operator fails in some cases, as one can see below.

{{{
function main	
  protected
	Integer a[:];
	Integer b[:];
	Real c[:];
        Real d[:];
  algorithm
		a := {i^2 for i in {1, 3, 6, 7, 8}}; // Error: Kann Typ des Ausdrucks i ^ 2 nicht aufl▒sen. Operanden haben Typen #Integer, Integer in Komponente <NO COMPONENT>.
		b := {i^2 for i in 1:2:5}; // Error: Type mismatch in assignment in b := {1.0, 9.0, 25.0} of Integer[:] := Real[3]
		c := {i^2 for i in {1.0, 3.0, 6.0, 7.0, 8.0}}; // OK
                d := {i^2 for i in {1, 3, 6, 7, 8}}; // Error: Kann Typ des Ausdrucks i ^ 2 nicht aufl▒sen. Operanden haben Typen #Integer, Integer in Komponente <NO COMPONENT>.
end main;
}}}"	defect	closed	normal		Frontend		invalid	exponentiation	
