www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10857] New: ICE(glue.c, bugzilla 2962?) or compiles, depending on the files order

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

           Summary: ICE(glue.c, bugzilla 2962?) or compiles, depending on
                    the files order
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice, rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: kekeniro2 yahoo.co.jp



This is somehow similar to Issue 8071.

COMMAND:
dmd -inline moda.d modb.d


OUTPUT:(by 2.063.2)
modb.d(4): Error: function modb.foo compiler error, parameter 'outer', bugzilla
2962?
Assertion failure: '0' on line 817 in file 'glue.c'

SOURCES:
--moda.d
import std.algorithm;

--modb.d
import std.algorithm;
import moda;

void foo(bool outer) {
    int[] infos;
    infos.filter!(s=>outer)(); // NG: error is triggered here
    //infos.filter!((int s)=>outer)(); // OK
}

void main() {}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 19 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10857


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

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



https://github.com/D-Programming-Language/dmd/pull/2485

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 19 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10857


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: -------
Aug 27 2013