<p dir="ltr">Any chance of this getting fixed?</p>
<p dir="ltr">Cheers, Morten</p>
<div class="gmail_quote">On Jan 10, 2014 1:41 PM, "Morten Nygaard Åsnes" <<a href="mailto:morten.aasnes@gmail.com">morten.aasnes@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi,</span><div style="font-family:arial,sans-serif;font-size:13px">I've encountered what I think is a bug in parsing asn1. Here is a testcase:</div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><div>Testcase DEFINITIONS IMPLICIT TAGS ::=</div><div><br></div><div>BEGIN</div><div><br></div><div>

<span style="white-space:pre-wrap">     </span>BaseType ::= ENUMERATED {</div><div><span style="white-space:pre-wrap">                </span>foo,</div><div><span style="white-space:pre-wrap">             </span>bar,</div><div><span style="white-space:pre-wrap">             </span>buz,</div>

<div><span style="white-space:pre-wrap">          </span>qux,</div><div><span style="white-space:pre-wrap">             </span>...</div><div><span style="white-space:pre-wrap">      </span>}</div><div><span style="white-space:pre-wrap">                </span></div>

<div><span style="white-space:pre-wrap">  </span>SubType ::= BaseType ( foo | bar )</div><div><br></div><div>END</div></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">

This gives the following error:</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><div>28> asn1ct:compile("Testcase", [ber,verbose]). </div>

<div>Erlang ASN.1 version "2.0.4", compiling "Testcase.asn"</div><div>Compiler Options: [ber,verbose,{i,"."}]</div><div>asn1error:13:'Testcase':'SubType'</div><div>{asn1,{undefined_type,bar}}</div>

<div>{error,[{error,{type,13,'Testcase','SubType',</div><div>                     {asn1,{undefined_type,bar}}}}]}</div></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">

If I remove the extension marker in BaseType, it compiles fine.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">This is using R16B03 on Windows</div>

</div>
</blockquote></div>