digitalmars.D - Silent compiler bug

Hi,
I found a nasty compiler bug that took me hours to figure it out.
It is a very silent one and I remember that I already stumbled over
it some time ago with the same time consuming result (but forgot it).
To summarize the warning: Take care to avoid forward declarations!
Here is a test case (it could probably be shorter):
http://paste.dprogramming.com/dpwt6yg9

Hi,
I found a nasty compiler bug that took me hours to figure it out.
It is a very silent one and I remember that I already stumbled over
it some time ago with the same time consuming result (but forgot it).
To summarize the warning: Take care to avoid forward declarations!
Here is a test case (it could probably be shorter):
http://paste.dprogramming.com/dpwt6yg9

The problem is related to Issue #1359,
I have attached it as an additional test case.
Walter Bright Wrote:

mandel wrote:

Hi,
I found a nasty compiler bug that took me hours to figure it out.
It is a very silent one and I remember that I already stumbled over
it some time ago with the same time consuming result (but forgot it).
To summarize the warning: Take care to avoid forward declarations!
Here is a test case (it could probably be shorter):
http://paste.dprogramming.com/dpwt6yg9