Anyone using dmd head?

Iain Buclaw ibuclaw at ubuntu.com
Fri Aug 9 11:41:24 PDT 2013


On 9 August 2013 19:22, H. S. Teoh <hsteoh at quickfur.ath.cx> wrote:
> On Fri, Aug 09, 2013 at 08:16:32PM +0200, Iain Buclaw wrote:
>> Just wanted to check with someone if this is working before I raise
>> a bug report. :-)
>>
>> A.d:
>> ---
>> module A;
>> import B;
>> enum MyEnum F = E;
>> ---
>>
>> B.d:
>> ---
>> module B;
>> import A;
>> enum : uint { E }  // Fails
>> //enum { E }         // OK
>> alias uint MyEnum;
>> ---
>>
>>
>> Run: dmd -c B.d
> [...]
>
> I'm using git HEAD. I get:
>
> A.d(3): Error: forward reference of enum member E
>
>

Excellent, this is a regression from around 11 months ago was the last
time this sort of code worked. :o)

-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';


More information about the Digitalmars-d mailing list