REAL type not supported by ASN1 compiler?

Thu May 19 11:06:31 CEST 2005


Tried the following message definition, in file Test.asn1


Msg ::= CHOICE
  aReal [1] REAL


When we do a erlc Test.asn1:

$ erlc Test.asn1
$ Erlang ASN.1 version "" compiling "/home/betis/tmp/Test.asn1"
$ Compiler Options: [ber,
$ asn1error:7:'Test':'Msg' {internal_error,{'cant check','REAL'}}

If REAL is replaced with INTEGER, works fine.

A quick check in the distrib source coude for asn1ct,
module asn1ct_check.erl, function check_type() reveals
a big case statement there, where all types are handled but 
not 'REAL'.

Patch needed? ;)

-- Alex

" Ce message et ses pièces jointes sont confidentiels et exclusivement réservés à leurs destinataires qui s'assureront de l'absence de virus. CSEE Transport n'assume aucune responsabilité au titre de ce message s'il est altéré, déformé, falsifié, indûment utilisé par des tiers ou encore s'il a causé des dommages ou pertes de toute nature.

This e-mail and any attached files are confidential and exclusively intended for its addressees who will conduct appropriate virus checks. CSEE Transport shall not be liable for the message if altered, changed, falsified, unduly used by third parties nor for any damage or loss."

More information about the erlang-questions mailing list