[Issue 11034] New: ICE: Assertion failed: (!scope), function toObjFile, file toobj.c, line 366.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 13 13:41:08 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11034

           Summary: ICE: Assertion failed: (!scope), function toObjFile,
                    file toobj.c, line 366.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: thelastmammoth at gmail.com


--- Comment #0 from thelastmammoth at gmail.com 2013-09-13 13:41:07 PDT ---
in both cases there's a bug:
could be related to another bug I've just posted: Issue 11019.

dmd main.d {
dmd 2.063.2: Assertion failed: (!scope), function toObjFile, file toobj.c, line
366.
dmd master: Assertion failed: (!scope), function toObjFile, file toobj.c, line
218.
}

dmd -version=A main.d{
error that makes no sense, with no relevance to main.d:
std/format.d(2950): Error: template std.format.formatValue does not match any
function template declaration. Candidates are: ...
}

---------------------------

version(A)
  import std.range;

class A(__T) { 
  A!(int) View(){
    return null;
  }
}

class B(__T)  : A!(int) {
  C!(int) View() { return null;}  
}

class C(__T)  : B!(int) { }


void main(){
  auto a=new B!(int);
}

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