Compiler crashes with fatal error
@fiannetti
Submitted by fiannetti Link to original bug (#492863)
Description
Created attachment 261418 Core file
Compiling the following ttcn module crashes the compiler.
========================= Log snippet:
sh -c make dep
/home/elnrnag/git/titan/Install/bin/compiler -lL ../src/MyExample.ttcn - ../src/MyExample.ttcn
Notify: Parsing TTCN-3 module `../src/MyExample.ttcn'...
Notify: Checking modules...
Notify: Generating code...
FATAL ERROR: /home/elnrnag/git/titan/Install/bin/compiler: In line 4556 of TtcnTemplate.cc: Template::needs_temp_ref()
Operation failed with return value: 2
========================= Example code:
module MyExample {
type integer A; type integer B;
type record rec { A a optional, B b optional }
template rec temp1 := { a := * }
template rec temp2 modifies temp1 := {
}
template rec temp3 modifies temp2 := { b := - } }
Attachment 261418, "Core file":
core.17882
Version: 5.5.0