Thread overview
[Issue 10486] New: Segfault on assigning `typeof(null)` to static array
Jun 27, 2013
Denis Shelomovskij
Jun 28, 2013
Kenji Hara
Jun 28, 2013
Walter Bright
June 27, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10486

           Summary: Segfault on assigning `typeof(null)` to static array
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: verylonglogin.reg@gmail.com


--- Comment #0 from Denis Shelomovskij <verylonglogin.reg@gmail.com> 2013-06-27 11:50:19 MSD ---
---
void main()
{
    typeof(null) null_;
    int[1] sarr = null_;
}
---
`arrayOf` is called on null `e2y->type->toBasetype()->nextOf()` at
`e2ir.c@2837` (`AssignExp::toElem`).

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


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

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


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-06-27 20:38:24 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2263

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



--- Comment #2 from github-bugzilla@puremagic.com 2013-06-28 12:07:46 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/bb409875035272973cea56b41f58050bafdb7d2a fix Issue 10486 - Segfault on assigning `typeof(null)` to static array

https://github.com/D-Programming-Language/dmd/commit/ce270e41aa185915136651124f2bf00981c10f84 Merge pull request #2263 from 9rnsr/fix10486

[REG2.063] Issue 10486 - Segfault on assigning `typeof(null)` to static array

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



--- Comment #3 from github-bugzilla@puremagic.com 2013-06-28 12:27:42 PDT ---
Commit pushed to 2.063 at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/92a411180b72341a20cbecffd2d38c403bc59834 Merge pull request #2263 from 9rnsr/fix10486

[REG2.063] Issue 10486 - Segfault on assigning `typeof(null)` to static array
Conflicts:

    src/e2ir.c

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


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: -------