www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12414] New: Assertion failure in 'template.c' on inout+foreach+template tuple parameter

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12414

           Summary: Assertion failure in 'template.c' on
                    inout+foreach+template tuple parameter
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: verylonglogin.reg gmail.com


--- Comment #0 from Denis Shelomovskij <verylonglogin.reg gmail.com> 2014-03-19
20:19:33 MSK ---
This code should compile:
---
void t(T...)(T) { }

void f1(inout int i)
{
    const c = i;
    t(c);
}

void f2(inout(int)[] arr)
{
    foreach(ref e; arr)
        t(e);
}
---
Assertion failure: '0' on line 1503 in file 'template.c'
---

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 19 2014
parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12414



--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2014-04-07 05:03:50 PDT ---
I cannot reproduce ICE with 2.060 - 2.065 and git-head.

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