[Issue 10486] New: Segfault on assigning `typeof(null)` to static array

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 27 00:50:24 PDT 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 at puremagic.com
        ReportedBy: verylonglogin.reg at gmail.com


--- Comment #0 from Denis Shelomovskij <verylonglogin.reg at 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 at 2837` (`AssignExp::toElem`).

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


More information about the Digitalmars-d-bugs mailing list