June 19, 2014
On Wednesday, 18 June 2014 at 04:59:08 UTC, Dan Olson wrote:
> "Temtaime" <temtaime@gmail.com> writes:
>
>> Try to specify only A.d
>>
>>
>>>ldc -c A.d B.d C.d D.d
>> *compiles OK*
>>
>>>ldc -c A.d
>> Error: Exp type Expression not implemented: p
>
> It dumps stack on 2.064 too.  I noticed that "ldc -O2 -c A.d" and higher
> optimization levels work though.

The codegen crashes because semantic2() and semantic3() did not run on some functions. This can happen e.g. because of syntax errors.

With my latest commit to merge-2.064 branch the crash is replaced by an error message. But I still need to analyze why LDC wants to generate code for the functions - DMD does apparently not.

Regards,
Kai
June 19, 2014
Hi Kai !
Any chance to get this bug fixed ?
June 19, 2014
Oh ok thanks you for your work.
I'll track it.
June 19, 2014
And merge this fix to 2.065 branch too please.
June 25, 2014
On Thursday, 19 June 2014 at 11:27:32 UTC, Temtaime wrote:
> Hi Kai !
> Any chance to get this bug fixed ?

I am working on it. Root cause is that LDC emits too much code, in this case even for entities for which not all semantic passes were run.

Regards,
Kai
June 25, 2014
On Thursday, 19 June 2014 at 11:29:17 UTC, Temtaime wrote:
> And merge this fix to 2.065 branch too please.

It is now in master (which is at 2.065 now). But this fix emits only an error message instead of a crash. It does not fix the underlying problem.

Regards,
Kai
July 01, 2014
On Thursday, 19 June 2014 at 11:27:32 UTC, Temtaime wrote:
> Hi Kai !
> Any chance to get this bug fixed ?

I create issue #662 (https://github.com/ldc-developers/ldc/issues/662) for it.

Regards,
Kai
Next ›   Last »
1 2