Hello everyone,<div><br></div><div>The following function cannot compile on Erlang R15B02:</div><div><br></div><div><div><font face="courier new, monospace"> format(Datetime, << H, T / binary >>) when not ((H >= $a) andalso (H =< $z)) andalso</font></div>
<div><font face="courier new, monospace"> not ((H >= $A) andalso (H =< $Z)) -></font></div><div><font face="courier new, monospace"> { Datetime, T }.</font></div><div><br></div><div>Here is a snippet of the failure:</div>
<div><pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px;padding:0px;font-size:12px;line-height:1.4em;font-family:'Bitstream Vera Sans Mono',Courier,monospace"><div style="margin:0px;padding:0px 0px 0px 1em;line-height:1.4em">
format_test.erl:none: internal error in v3_codegen;</div><div style="margin:0px;padding:0px 0px 0px 1em;line-height:1.4em">crash reason: {{case_clause,</div><div style="margin:0px;padding:0px 0px 0px 1em;line-height:1.4em">
{'EXIT',</div><div style="margin:0px;padding:0px 0px 0px 1em;line-height:1.4em"> {function_clause,</div><div style="margin:0px;padding:0px 0px 0px 1em;line-height:1.4em"> [{v3_codegen,bsm_rename_ctx,</div>
<div><br></div></pre></div><div>I believe the current code to be valid Erlang and it should not blow up the compiler chain. :)</div><div>Furthermore, simply adding other clauses to this function (without touching it) makes the error go away.</div>
<div><br></div><div>I have put more information about the failure and a full sample module in a gist: <a href="https://gist.github.com/dd4c1240a1510711b26a" style="color:rgb(17,85,204)" target="_blank">https://gist.github.com/dd4c1240a1510711b26a</a></div>
<div>I tried to further debug the issue, but I could not pinpoint exactly the failure. Let me know if I can help any further.</div><div><br></div><div><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">Thanks for your time,</span></div>
</div><div><br></div><div>PS: I have sent this same e-mail one week ago but it didn't appear on the erlang-bugs mailing list. So I am sending it again. Apologies if it appears twice.</div><div><br></div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><b><span style="border-collapse:separate;font-family:arial;font-weight:normal"><div>
<span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><b>José Valim</b></span></div><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><div><span style="font-family:verdana,sans-serif;font-size:x-small"><a href="http://www.plataformatec.com.br/" style="color:rgb(42,93,176)" target="_blank">www.plataformatec.com.br</a></span></div>
<div><span style="font-family:verdana,sans-serif;font-size:x-small">Founder and Lead Developer</span></div></span></div></span></b></span><br>