Anyone using dmd head?

Ali Çehreli acehreli at yahoo.com
Fri Aug 9 14:53:47 PDT 2013


On 08/09/2013 11:16 AM, 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
>
>
>
> Thanks,
> Iain.

DMD64 D Compiler v2.064-devel-52cc287 behaves the same:

   A.d(3): Error: forward reference of enum member E

Ali



More information about the Digitalmars-d mailing list