Skip to content

address type not handled according to the standars

Summary

Port specific address type cannot be specified.

Steps and/or TTCN-3 code to reproduce

type record MyAddressType {
  integer field1,
  boolean field2
}
type port MyPortType message {
  address MyAddressType;
  inout integer;
}

What is the current bug behavior?

TITAN fails to compile the above code.

What is the expected correct behavior?

The code should be compiled according to Section 6.2.12, EXAMPLE 2 of the TTCN-3 standard (Core Language)

Relevant logs and/or screenshots

Error message during compilation:

Notify: Parsing TTCN-3 module `../src/my.ttcn'...
../src/my.ttcn:8.3-9: error: at or before token `address': syntax error
Notify: Error found in the input module. Code will not be generated.
make: *** [Makefile:154: compile] Error 1
Operation failed with return value: 2

Possible fixes

Titan version

8.1.0

Platform details (OS type and version)

Microsoft Windows 10 Enterprise 10.0.19042

/cc @aknappqwt

Edited by Levente Erős