`AnyElementsOrNone` with a length restriction
Summary
ETSI ES 201 873-1 V4.15.1 (2023-04), section 15.6.3 "Referencing record of and set of elements" gives the following example (5):
type record of integer RoI;
template RoI mw_roI := {1, * length(2), 5}; // transformed form: {1, ?, ?, 5}
template RoI mw_roI := {1, * length(1..3), 5}; // transformed form: {1, ?, * length(0..2), 5}
What is the current bug behavior?
TITAN throws errors when trying to compile this code:
error: Length restriction cannot be used in a template of type `integer'
What is the expected correct behavior?
The code should compile and behave as described in the language specification.
Titan version
TTCN-3 and ASN.1 Compiler for the TTCN-3 Test Executor
Version: 10.1.2
Build date: Oct 6 2024 19:30:48
Compiled with: GCC 14.2.1
Using OpenSSL 3.3.2 3 Sep 2024
Commit id: c81436e
Copyright (c) 2000-2024 Ericsson Telecom AB
Platform details (OS type and version)
Arch Linux, https://aur.archlinux.org/packages/eclipse-titan
/cc @aknappqwt @mmagyari