Re: Anyone using dmd head?

2013-08-10 Thread Iain Buclaw
On 9 August 2013 22:13, Andrej Mitrovic wrote: > On 8/9/13, Iain Buclaw wrote: >> Excellent, this is a regression from around 11 months ago was the last >> time this sort of code worked. :o) > > I can't get any compiler version to work with this code. Tried 2.050 > all the way up to git-head. Hm

Re: Anyone using dmd head?

2013-08-09 Thread Iain Buclaw
On 9 August 2013 22:53, Ali Çehreli wrote: > > DMD64 D Compiler v2.064-devel-52cc287 behaves the same: > > > A.d(3): Error: forward reference of enum member E > > Ali > Yeah, I'd expect it to be a front-end implementation problem, so doesn't matter what target. -- Iain Buclaw *(p < e ? p++ :

Re: Anyone using dmd head?

2013-08-09 Thread Ali Çehreli
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:

Re: Anyone using dmd head?

2013-08-09 Thread Andrej Mitrovic
On 8/9/13, Iain Buclaw wrote: > Excellent, this is a regression from around 11 months ago was the last > time this sort of code worked. :o) I can't get any compiler version to work with this code. Tried 2.050 all the way up to git-head.

Re: Anyone using dmd head?

2013-08-09 Thread Iain Buclaw
On 9 August 2013 19:22, H. S. Teoh 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

Re: Anyone using dmd head?

2013-08-09 Thread H. S. Teoh
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 {

Anyone using dmd head?

2013-08-09 Thread Iain Buclaw
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.