<div dir="ltr"><div><div><div>Hi,<br><br></div>I have found an ASN.1 fragment that compiles well with erlc -bber flag but fails with erlc -bper.<br><br></div>> iri@ubuntu:~/asn$ erlc -bber TEST.asn<br>  -> works well<br></div><div><br>> iri@ubuntu:~/asn$ erlc -bper TEST.asn<br>  -> raises an error<br><div>      ------------------------------------------------<br>      {{badmatch,1799999989},<br>       [{asn1ct_imm,per_enc_constrained,4,[{file,"asn1ct_imm.erl"},{line,1139}]},<br>        {asn1ct_imm,per_enc_integer_1,3,[{file,"asn1ct_imm.erl"},{line,1094}]},<br>        {asn1ct_imm,'-per_enc_integer/4-lc$^0/1-0-',4,<br>                    [{file,"asn1ct_imm.erl"},{line,248}]},<br>        {asn1ct_imm,per_enc_integer,4,[{file,"asn1ct_imm.erl"},{line,248}]},<br>        {asn1ct_gen_per,gen_encode_prim,3,[{file,"asn1ct_gen_per.erl"},{line,121}]},<br>        {asn1ct_gen_per,gen_encode_user,2,[{file,"asn1ct_gen_per.erl"},{line,98}]},<br>        {asn1ct_gen,pgen_types,5,[{file,"asn1ct_gen.erl"},{line,123}]},<br>        {asn1ct_gen,pgen_typeorval,4,[{file,"asn1ct_gen.erl"},{line,105}]}]}<br>      ------------------------------------------------<br><br>With ASN.1 -> C compiler<br>> asn1c -gen-PER TEST.asn<br></div><div>  -> also works well<br><br></div><div><br><div> File TEST.asn:<br>------------------------<br>    TEST DEFINITIONS IMPLICIT TAGS ::=<br>    BEGIN<br>      Longitude ::= INTEGER<br>      {<br>        oneMicrodegreeEast(10),<br>        oneMicrodegreeWest(-10),<br>        unavailable(1800000001)<br>      } (-1799999999..1800000001)<br>    END<br>------------------------<br><br><br>Thanks,
<br><br>Ingars<br>/////<br><br></div></div></div></div>