Skip to content

Faulty semantic enum handling in case of name collision

Submitted by Jeno Attila Balasko

Assigned to Jeno Attila Balasko

Link to original bug (#520401)

Description

If there is an enum value and a type with the same name then the type will be used as right value and this cause a faulty error marker. See the line "e:= R" in the example.

Example: module RetValTest { type component CT{} type record R { integer i }

type enumerated MyEnum { A, R };

type union U { R r, integer i, MyEnum e }

function f(in integer pl_i) runs on CT return U{ return { e:= R }

}

}

Version: 6.2.0