Thread overview
[Issue 9158] New: [ICE](glue.c line 787) with reduce from another module
Jun 12, 2013
Jonathan Dunlap
Jun 12, 2013
Jonathan Dunlap
Jun 12, 2013
Jonathan Dunlap
Jun 14, 2013
Don
Oct 07, 2013
Walter Bright
December 15, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9158

           Summary: [ICE](glue.c line 787) with reduce from another module
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: bearophile_hugs@eml.cc


--- Comment #0 from bearophile_hugs@eml.cc 2012-12-14 16:29:36 PST ---
First module, named "module1.d":


import std.stdio;
import module2;
void main() {}



Second module, named "module2.d":


import std.algorithm: reduce;
struct Foo {
    string bar() {
        auto spam = (string s, int) => "";
        return reduce!spam("", [1]);
    }
}



It generates, dmd 2.061alpha:

Assertion failure: '!vthis->csym' on line 787 in file 'glue.c'

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



--- Comment #1 from Jonathan Dunlap <jadit2@gmail.com> 2013-06-12 16:16:49 PDT ---
*** Issue 10340 has been marked as a duplicate of this issue. ***

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



--- Comment #2 from Jonathan Dunlap <jadit2@gmail.com> 2013-06-12 16:18:38 PDT ---
I'm getting the same issues on Windows 7 with DMD 2.063. If I take out all the "reduce" statements in sub-modules, the build works again.

Windows 7: DMD 2.063
==============================
Assertion failure: '!vthis->csym' on line 786 in file 'glue.c'

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


Jonathan Dunlap <jadit2@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |major


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


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice


--- Comment #3 from Don <clugdbug@yahoo.com.au> 2013-06-14 04:47:06 PDT ---
Probably a duplicate of bug 4481

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


Walter Bright <bugzilla@digitalmars.com> changed:

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


--- Comment #4 from Walter Bright <bugzilla@digitalmars.com> 2013-10-07 00:01:13 PDT ---
Compiles without error on 2.064 head.

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