The asn1 compiler cannot recognize fieldspec from ObjectClass definition
Submitted by zos rothko
Link to original bug (#490918)
Description
Hi
Compiling with the titan.code/compiler2/compiler the modules as specified below produces multiple errors on unrecognized fieldspecs.
#!/bin/bash
ASN="
../asn/ISO8823-PRESENTATION.asn
../asn/Reliable-Transfer-APDU.asn
../asn/Remote-Operations-Information-Objects.asn
../asn/Remote-Operations-Useful-Definitions.asn
../asn/Remote-Operations-Generic-ROS-PDUs.asn
"
../compiler -A $ASN
Notify: Parsing ASN.1 module ../asn/ISO8823-PRESENTATION.asn'... Notify: Parsing ASN.1 module
../asn/Reliable-Transfer-APDU.asn'...
Notify: Parsing ASN.1 module ../asn/Remote-Operations-Information-Objects.asn'... Notify: Parsing ASN.1 module
../asn/Remote-Operations-Useful-Definitions.asn'...
Notify: Parsing ASN.1 module ../asn/Remote-Operations-Generic-ROS-PDUs.asn'... Notify: Checking modules... ../asn/Remote-Operations-Useful-Definitions.asn: In ASN.1 module
Remote-Operations-Useful-Definitions':
../asn/Remote-Operations-Useful-Definitions.asn:16: In information object assignment emptyBind': ../asn/Remote-Operations-Information-Objects.asn:12: In information object class assignment
OPERATION':
../asn/Remote-Operations-Information-Objects.asn:12: In syntax of ObjectClass @Remote-Operations-Information-Objects.OPERATION': ../asn/Remote-Operations-Information-Objects.asn:22: error: Cannot recognize fieldspec ../asn/Remote-Operations-Information-Objects.asn:23: error: Cannot recognize fieldspec ../asn/Remote-Operations-Information-Objects.asn:18: In fieldspec
&Errors':
../asn/Remote-Operations-Information-Objects.asn:41: In information object class assignment ERROR': ../asn/Remote-Operations-Information-Objects.asn:41: In syntax of ObjectClass
@Remote-Operations-Information-Objects.ERROR':
../asn/Remote-Operations-Information-Objects.asn:44: error: Cannot recognize fieldspec
../asn/Reliable-Transfer-APDU.asn: In ASN.1 module Reliable-Transfer-APDU': ../asn/Reliable-Transfer-APDU.asn:30: In type assignment
RTSE-apdus':
../asn/Reliable-Transfer-APDU.asn:31: In type of CHOICE alternative rtorq-apdu': ../asn/Reliable-Transfer-APDU.asn:60: In type assignment
RTORQapdu':
../asn/Reliable-Transfer-APDU.asn:65: In type of SET component connectionDataRQ': ../asn/Reliable-Transfer-APDU.asn:95: In type assignment
ConnectionData':
../asn/Reliable-Transfer-APDU.asn:96: In type of CHOICE alternative open': ../asn/Reliable-Transfer-APDU.asn:96: warning: An open type without table constraint is useless in TTCN-3 ../asn/Reliable-Transfer-APDU.asn:33: In type of CHOICE alternative
rtorj-apdu':
../asn/Reliable-Transfer-APDU.asn:76: In type assignment RTORJapdu': ../asn/Reliable-Transfer-APDU.asn:78: In type of SET component
userDataRJ':
../asn/Reliable-Transfer-APDU.asn:79: warning: An open type without table constraint is useless in TTCN-3
../asn/Reliable-Transfer-APDU.asn:36: In type of CHOICE alternative rtab-apdu': ../asn/Reliable-Transfer-APDU.asn:86: In type assignment
RTABapdu':
../asn/Reliable-Transfer-APDU.asn:90: In type of SET component userdataAB': ../asn/Reliable-Transfer-APDU.asn:91: warning: An open type without table constraint is useless in TTCN-3 ../asn/ISO8823-PRESENTATION.asn: In ASN.1 module
ISO8823-PRESENTATION':
../asn/ISO8823-PRESENTATION.asn:16: In type assignment CP-type': ../asn/ISO8823-PRESENTATION.asn:18: In type of SET component
x410-mode-parameters':
../asn/ISO8823-PRESENTATION.asn:19: In type of SET component connectionDataRQ': ../asn/Reliable-Transfer-APDU.asn:65: error: There is no assignment or imported symbol with name
ConnectionData' in module ISO8823-PRESENTATION' ../asn/ISO8823-PRESENTATION.asn:24: In type of SET component
normal-mode-parameters':
../asn/ISO8823-PRESENTATION.asn:29: In type of SEQUENCE component presentation-context-definition-list': ../asn/ISO8823-PRESENTATION.asn:262: In type assignment
Presentation-context-definition-list':
../asn/ISO8823-PRESENTATION.asn:226: In type assignment Context-list': ../asn/ISO8823-PRESENTATION.asn:227: warning: The subtype of type
@ISO8823-PRESENTATION.Context-list' is a full set, it does not constrain the root type.
../asn/ISO8823-PRESENTATION.asn:67: In type assignment CPA-PPDU': ../asn/ISO8823-PRESENTATION.asn:69: In type of SET component
x410-mode-parameters':
../asn/ISO8823-PRESENTATION.asn:69: In type of SET component connectionDataAC': ../asn/Reliable-Transfer-APDU.asn:73: error: There is no assignment or imported symbol with name
ConnectionData' in module ISO8823-PRESENTATION' ../asn/ISO8823-PRESENTATION.asn:75: In type of SET component
normal-mode-parameters':
../asn/ISO8823-PRESENTATION.asn:78: In type of SEQUENCE component presentation-context-definition-result-list': ../asn/ISO8823-PRESENTATION.asn:264: In type assignment
Presentation-context-definition-result-list':
../asn/ISO8823-PRESENTATION.asn:300: In type assignment Result-list': ../asn/ISO8823-PRESENTATION.asn:301: warning: The subtype of type
@ISO8823-PRESENTATION.Result-list' is a full set, it does not constrain the root type.
../asn/ISO8823-PRESENTATION.asn:100: In type assignment CPR-PPDU': ../asn/ISO8823-PRESENTATION.asn:101: In type of CHOICE alternative
x400-mode-parameters':
../asn/ISO8823-PRESENTATION.asn:101: In type of SET component refuseReason': ../asn/Reliable-Transfer-APDU.asn:77: error: There is no assignment or imported symbol with name
RefuseReason' in module ISO8823-PRESENTATION' ../asn/ISO8823-PRESENTATION.asn:101: In type of SET component
userDataRJ':
../asn/Reliable-Transfer-APDU.asn:79: error: There is no assignment or imported symbol with name OPEN' in module
ISO8823-PRESENTATION'
../asn/ISO8823-PRESENTATION.asn:128: In type assignment Abort-type': ../asn/ISO8823-PRESENTATION.asn:129: In type of CHOICE alternative
aru-ppdu':
../asn/ISO8823-PRESENTATION.asn:134: In type assignment ARU-PPDU': ../asn/ISO8823-PRESENTATION.asn:135: In type of CHOICE alternative
x400-mode-parameters':
../asn/ISO8823-PRESENTATION.asn:135: In type of SET component abortReason': ../asn/Reliable-Transfer-APDU.asn:87: error: There is no assignment or imported symbol with name
AbortReason' in module ISO8823-PRESENTATION' ../asn/ISO8823-PRESENTATION.asn:135: In type of SET component
userdataAB':
../asn/Reliable-Transfer-APDU.asn:91: error: There is no assignment or imported symbol with name OPEN' in module
ISO8823-PRESENTATION'
../asn/ISO8823-PRESENTATION.asn:138: In type of CHOICE alternative normal-mode-parameters': ../asn/ISO8823-PRESENTATION.asn:139: In type of SEQUENCE component
presentation-context-identifier-list':
../asn/ISO8823-PRESENTATION.asn:275: In type assignment Presentation-context-identifier-list': ../asn/ISO8823-PRESENTATION.asn:276: warning: The subtype of type
@ISO8823-PRESENTATION.Presentation-context-identifier-list' is a full set, it does not constrain the root type.
../asn/ISO8823-PRESENTATION.asn:158: In type assignment Typed-data-type': ../asn/ISO8823-PRESENTATION.asn:159: In type of CHOICE alternative
acPPDU':
../asn/ISO8823-PRESENTATION.asn:165: In type assignment AC-PPDU': ../asn/ISO8823-PRESENTATION.asn:168: In type of SEQUENCE component
presentation-context-deletion-list':
../asn/ISO8823-PRESENTATION.asn:266: In type assignment Presentation-context-deletion-list': ../asn/ISO8823-PRESENTATION.asn:267: warning: The subtype of type
@ISO8823-PRESENTATION.Presentation-context-deletion-list' is a full set, it does not constrain the root type.
../asn/ISO8823-PRESENTATION.asn:160: In type of CHOICE alternative acaPPDU': ../asn/ISO8823-PRESENTATION.asn:174: In type assignment
ACA-PPDU':
../asn/ISO8823-PRESENTATION.asn:177: In type of SEQUENCE component presentation-context-deletion-result-list': ../asn/ISO8823-PRESENTATION.asn:269: In type assignment
Presentation-context-deletion-result-list':
../asn/ISO8823-PRESENTATION.asn:270: warning: The subtype of type `@ISO8823-PRESENTATION.Presentation-context-deletion-result-list' is a full set, it does not constrain the root type.
Notify: Errors found in the input modules. Code will not be generated.