D1: Error: duplicate union initialization for size
    Jacob Carlborg via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Sun Aug 31 02:10:57 PDT 2014
    
    
  
On 2014-08-31 04:53, Ali Çehreli wrote:
> On 08/30/2014 06:05 PM, jicman wrote:
>
>  > Really is or how one can fix it?  This is the only time that I have
>  > found myself without answers with D.  Strange.  Maybe folks are not that
>  > into D1, but D1 was before D2.  Any thoughts would be greatly
>  > appreciated.  Even from Walter. :-)  Thanks.
>
> I still think this is the same bug that I have linked before:
>
>    https://issues.dlang.org/show_bug.cgi?id=8902
>
> My guess is that it hasn't been ported to the D1 compiler yet. Dicebot
> or any other people who work for Sociomantic should be most helpful. At
> this point, I recommend that you ask on the main D forum.
That might be the case but this code doesn't involve a union. "Size" is 
a struct.
The fix for the issue above requires minimal changes [1]. Perhaps it's 
worth a try to port to D1.
[1] 
https://github.com/D-Programming-Language/dmd/commit/840d88a6e539e9817cffdc4abe8ad6357897d54a
-- 
/Jacob Carlborg
    
    
More information about the Digitalmars-d-learn
mailing list