www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Silent compiler bug

reply mandel <mandel foobar.com> writes:
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
Aug 08 2007
parent reply Walter Bright <newshound1 digitalmars.com> writes:
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

Thanks. Can you post it to bugzilla, please? http://d.puremagic.com/issues/
Aug 10 2007
parent mandel <mandel mailinator.com> writes:
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

Thanks. Can you post it to bugzilla, please? http://d.puremagic.com/issues/

Aug 11 2007