ASN.1 Information Objects parsing error [message #1857471] |
Thu, 09 February 2023 09:47 |
Yann Garcia Messages: 153 Registered: June 2016 |
Senior Member |
|
|
Dear All,
We got some issues with the ASN.1 compiler: it doesn't support the complex information objects like:
(see bug issue opened by my colleague Denis Filatov: https://gitlab.eclipse.org/eclipse/titan/titan.core/-/issues/688
Pdu ::= SEQUENCE {
id EXT-TYPE.&extId({Variants}),
content SEQUENCE OF EXT-TYPE.&ExtContent({Variants}{@.id})
}
The step to reproduce the issues are:
ttcn3_compiler -A test.asn
The file test.asn is:
ModuleTestEmpty DEFINITIONS AUTOMATIC TAGS ::= BEGIN
IMPORTS ;
Pdu ::= SEQUENCE {
id EXT-TYPE.&extId({Variants}),
content SEQUENCE OF EXT-TYPE.&ExtContent({Variants}{@.id})
}
EXT-TYPE ::= CLASS {
&extId VarId,
&ExtContent
} WITH SYNTAX {&ExtContent IDENTIFIED BY &extId}
Variants EXT-TYPE ::= {
{NULL IDENTIFIED BY v1},
...
}
VarId ::= INTEGER(0..255)
END
The issue is:
ttcn3_compiler.exe -A test.asn
Notify: Parsing ASN.1 module `test.asn'...
Notify: Checking modules...
test.asn: In ASN.1 module `ModuleTestEmpty':
test.asn:5: In type assignment `Pdu':
test.asn:7: In constraint #1 of type `open type':
test.asn:7: error: Type `@ModuleTestEmpty.Pdu.content' is not a SEQUENCE, SET of CHOICE type.
Notify: Error found in the input module. Code will not be generated.
The Titan version is:
TTCN-3 and ASN.1 Compiler for the TTCN-3 Test Executor
Version: 8.3.0
Build date: Jan 26 2023 09:02:42
Compiled with: GCC 11.3.0
Using OpenSSL 1.1.1s 1 Nov 2022
Commit id: a4679583a
Platform details: OS type and version Windows 10+Cygwin
Many thanks in advance for your support.
Yann Garcia
Senior Software Engineer
Microsoft MCAD.net Certified
**************************************
FSCOM SARL
Le Montespan B2
6, Avenue des Alpes
F-06600 Antibes, FRANCE
************************************************
Tel: +33 (0)4 92 94 49 08 (GMT+1)
Mobile: +33 (0)6 68 94 57 76 (GMT+1)
Email: yann.garcia@fscom.fr
Skype: yann.garcia
SlackID: U0263576GG3, U02T8HUD2KX
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03224 seconds