Re: Debugging compiler crashes?

2012-07-02 Thread Trass3r

... the order of files matters? Yuck.


Yep it's a bug.


Re: Debugging compiler crashes?

2012-07-02 Thread Wouter Verhelst
Wouter Verhelst  writes:

> Trass3r  writes:
>
>>> dmd: glue.c:542: virtual void FuncDeclaration::toObjFile(int):
>>> Assertion `semanticRun == PASSsemantic3done' failed.
>>> Aborted
>>> wouter@carillon:~/code/d/DustMite$
>>>
>>> ... and I'm not yet that fluent in D to understand what's going on. Any
>>> ideas?
>>
>> pass dustmite.d before dsplit.d
>> known problem, but the error message has changed
>
> ... the order of files matters? Yuck.
>
> Oh well.

Anyway, this helped tracking the problem down, and I've now filed a bug:

http://d.puremagic.com/issues/show_bug.cgi?id=8337

thanks,

-- 
The volume of a pizza of thickness a and radius z can be described by
the following formula:

pi zz a


Re: Debugging compiler crashes?

2012-07-02 Thread Wouter Verhelst
Trass3r  writes:

>> dmd: glue.c:542: virtual void FuncDeclaration::toObjFile(int):
>> Assertion `semanticRun == PASSsemantic3done' failed.
>> Aborted
>> wouter@carillon:~/code/d/DustMite$
>>
>> ... and I'm not yet that fluent in D to understand what's going on. Any
>> ideas?
>
> pass dustmite.d before dsplit.d
> known problem, but the error message has changed

... the order of files matters? Yuck.

Oh well.

-- 
The volume of a pizza of thickness a and radius z can be described by
the following formula:

pi zz a


Re: Debugging compiler crashes?

2012-07-02 Thread Trass3r
dmd: glue.c:542: virtual void FuncDeclaration::toObjFile(int): Assertion  
`semanticRun == PASSsemantic3done' failed.

Aborted
wouter@carillon:~/code/d/DustMite$

... and I'm not yet that fluent in D to understand what's going on. Any
ideas?


pass dustmite.d before dsplit.d
known problem, but the error message has changed


Re: Debugging compiler crashes?

2012-07-02 Thread Wouter Verhelst
Timon Gehr  writes:

> On 07/02/2012 08:38 PM, Wouter Verhelst wrote:
>>
>> Hi,
>>
>> I have a body of code which makes the compiler frontend segfault.
>>
>> Is there some automated tool which will help me produce a minimal
>> testcase so I can file a bugreport? The body in question is fairly
>> large, just posting that to a bugreport doesn't sound like a good idea
>> to me.
>>
>> Thanks,
>>
>
> https://github.com/CyberShadow/DustMite

Thanks, that sounds like just the thing I need.

However, it doesn't seem to compile for me:

wouter@carillon:~/code/d/DustMite$ dmd -ofdustmite -release *d
dmd: glue.c:542: virtual void FuncDeclaration::toObjFile(int): Assertion 
`semanticRun == PASSsemantic3done' failed.
Aborted
wouter@carillon:~/code/d/DustMite$ 

... and I'm not yet that fluent in D to understand what's going on. Any
ideas?

(dmd 2.059, in case that matters)

-- 
The volume of a pizza of thickness a and radius z can be described by
the following formula:

pi zz a


Re: Debugging compiler crashes?

2012-07-02 Thread Timon Gehr

On 07/02/2012 08:38 PM, Wouter Verhelst wrote:


Hi,

I have a body of code which makes the compiler frontend segfault.

Is there some automated tool which will help me produce a minimal
testcase so I can file a bugreport? The body in question is fairly
large, just posting that to a bugreport doesn't sound like a good idea
to me.

Thanks,



https://github.com/CyberShadow/DustMite


Debugging compiler crashes?

2012-07-02 Thread Wouter Verhelst

Hi,

I have a body of code which makes the compiler frontend segfault.

Is there some automated tool which will help me produce a minimal
testcase so I can file a bugreport? The body in question is fairly
large, just posting that to a bugreport doesn't sound like a good idea
to me.

Thanks,

-- 
The volume of a pizza of thickness a and radius z can be described by
the following formula:

pi zz a