Yup, infinite loop.<br><br><div class="gmail_quote">On Sat, Aug 14, 2010 at 1:39 AM, Justin Johansson <span dir="ltr"><<a href="mailto:no@spam.com">no@spam.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Compiling the following with latest DMD D2 sends the compiler into an<br>
infinite loop. The culprit line seems to be the alias definition.<br>
Can someone else please confirm.<br>
Thanks Justin<br>
<br>
<br>
<br>
<br>
module test;<br>
<br>
<br>
class Base<br>
{<br>
Base foo();<br>
}<br>
<br>
class Foo: Base<br>
{<br>
static class Bar: Foo<br>
{<br>
Bar foo() {<br>
return this;<br>
}<br>
}<br>
<br>
Bar foo();<br>
}<br>
<br>
alias Foo.Bar FooBar;<br>
<br>
<br>
void main()<br>
{<br>
}<br>
<br>
<br>
<br>
test.d(10): Error: class test.Foo is forward referenced when looking for 'eVr'<br>
test.d(10): Error: class test.Foo is forward referenced when looking for 'eWr'<br>
test.d(10): Error: class test.Foo is forward referenced when looking for 'eXr'<br>
test.d(10): Error: class test.Foo is forward referenced when looking for 'eYr'<br>
test.d(10): Error: class test.Foo is forward referenced when looking for 'eZr'<br>
test.d(10): Error: class test.Foo is forward referenced when looking for 'e0r'<br>
test.d(10): Error: class test.Foo is forward referenced when looking for 'e1r'<br>
test.d(10): Error: class test.Foo is forward referenced when looking for 'e2r'<br>
test.d(10): Error: class test.Foo is forward referenced when looking for 'e3r'<br>
test.d(10): Error: class test.Foo is forward referenced when looking for 'e4r'<br>
test.d(10): Error: class test.Foo is forward referenced when looking for 'e5r'<br>
test.d(10): Error: class test.Foo is forward referenced when looking for 'e6r'<br>
test.d(10): Error: class test.Foo is forward referenced when looking for 'e7r'<br>
test.d(10): Error: class test.Foo is forward referenced when looking for 'e8r'<br>
test.d(10): Error: class test.Foo is forward referenced when looking for 'e9r'<br>
test.d(10): Error: class test.Foo is forward referenced when looking for 'e_r'<br>
test.d(10): Error: class test.Foo is forward referenced when looking for 'eaar'<br>
test.d(10): Error: class test.Foo is forward referenced when looking for 'ebar'<br>
test.d(10): Error: class test.Foo is forward referenced when looking for 'ecar'<br>
....<br>
</blockquote></div><br>