Skip to content

Internal compiler error for charstring

The following code triggers an internal compiler error.

module classes { 

type component CT {
	port PT pt_PT;
}

type port PT message { inout integer; } with { extension "internal" }
 
/*****************************
	class tests
*****************************/

type charstring Char1_Type length (1);

function f_Linefeed() return Char1_Type

{
    var Char1_Type v_Char1 := char(UA);//char(0,0,0,32);
    return v_Char1;
}

testcase tc_basicSyntax() runs on CT {

}

control {
	execute(tc_basicSyntax());   
}

}

The problem is probably caused by

char(UA)

where we initialize a charstring with an universal char.