[erlang-bugs] ASN.1. generation with erlc -bber works / erlc -bper - fails
Ingars
ram3a12@REDACTED
Thu Jan 21 13:38:50 CET 2016
Hi,
I have found an ASN.1 fragment that compiles well with erlc -bber flag but
fails with erlc -bper.
> iri@REDACTED:~/asn$ erlc -bber TEST.asn
-> works well
> iri@REDACTED:~/asn$ erlc -bper TEST.asn
-> raises an error
------------------------------------------------
{{badmatch,1799999989},
[{asn1ct_imm,per_enc_constrained,4,[{file,"asn1ct_imm.erl"},{line,1139}]},
{asn1ct_imm,per_enc_integer_1,3,[{file,"asn1ct_imm.erl"},{line,1094}]},
{asn1ct_imm,'-per_enc_integer/4-lc$^0/1-0-',4,
[{file,"asn1ct_imm.erl"},{line,248}]},
{asn1ct_imm,per_enc_integer,4,[{file,"asn1ct_imm.erl"},{line,248}]},
{asn1ct_gen_per,gen_encode_prim,3,[{file,"asn1ct_gen_per.erl"},{line,121}]},
{asn1ct_gen_per,gen_encode_user,2,[{file,"asn1ct_gen_per.erl"},{line,98}]},
{asn1ct_gen,pgen_types,5,[{file,"asn1ct_gen.erl"},{line,123}]},
{asn1ct_gen,pgen_typeorval,4,[{file,"asn1ct_gen.erl"},{line,105}]}]}
------------------------------------------------
With ASN.1 -> C compiler
> asn1c -gen-PER TEST.asn
-> also works well
File TEST.asn:
------------------------
TEST DEFINITIONS IMPLICIT TAGS ::=
BEGIN
Longitude ::= INTEGER
{
oneMicrodegreeEast(10),
oneMicrodegreeWest(-10),
unavailable(1800000001)
} (-1799999999..1800000001)
END
------------------------
Thanks,
Ingars
/////
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20160121/b6355c40/attachment.htm>
More information about the erlang-bugs
mailing list