Thread overview
[Issue 11269] New: [REG 2.064beta1] Union initialization on 64-bit plattforms
Oct 15, 2013
Benjamin Thaut
Oct 18, 2013
Kenji Hara
Oct 19, 2013
Kenji Hara
Oct 20, 2013
Walter Bright
October 15, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11269

           Summary: [REG 2.064beta1] Union initialization on 64-bit
                    plattforms
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: code@benjamin-thaut.de


--- Comment #0 from Benjamin Thaut <code@benjamin-thaut.de> 2013-10-15 02:13:07 PDT ---
The following code will only fail to compile for 64-bit windows. It works fine for 32-bit windows. This code used to work in dmd 2.063.2 and dmd 2.062


struct Atom
{
  union
  {
    int i;
    struct {
      Atom* first, rest;
    }
    struct {
      uint localIndex;
      uint literalIndex;
    }
  }
}

void main(string[] args)
{
  Atom a;
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 18, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11269



--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-10-17 18:57:00 PDT ---
Repro case in both 32/64 bit platforms:

struct Atom
{
    union
    {
        int i;
        struct
        {
            ulong first, rest;
        }
        struct
        {
            uint localIndex;
            uint literalIndex;
        }
    }
}
void main()
{
    Atom a;
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 19, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11269


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2013-10-19 06:08:49 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2681

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 20, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11269



--- Comment #3 from github-bugzilla@puremagic.com 2013-10-19 20:54:42 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/23162cbacee41ac9ece0135f2d986d388e32cdf5 fix Issue 11269 - Union initialization on 64-bit platforms

https://github.com/D-Programming-Language/dmd/commit/bb45939a3d0f7bf52fd0193f8ed35f283c22257a Merge pull request #2681 from 9rnsr/fix11269

[REG2.064a] Issue 11269 - Union initialization on 64-bit platforms

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 20, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11269



--- Comment #4 from github-bugzilla@puremagic.com 2013-10-19 20:56:07 PDT ---
Commit pushed to 2.064 at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/106b7262f65c4642a3cf6bb73bb54dbcd81f0f28 Merge pull request #2681 from 9rnsr/fix11269

[REG2.064a] Issue 11269 - Union initialization on 64-bit platforms

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 20, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11269


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------