Thread overview
[Issue 3982] New: [ICE] a.values on wrong AA
Apr 09, 2010
Don
May 06, 2010
Don
March 18, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3982

           Summary: [ICE] a.values on wrong AA
           Product: D
           Version: 2.041
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: bearophile_hugs@eml.cc


--- Comment #0 from bearophile_hugs@eml.cc 2010-03-17 20:14:56 PDT ---
This is wrong D2 code:


struct Foo {
    static Foo opCall() {}
}
void main() {
    Foo[Foo] a;
    a.values;
}


Assertion failure: 'impl' on line 3901 in file 'mtype.c'

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 09, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3982


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |clugdbug@yahoo.com.au


--- Comment #1 from Don <clugdbug@yahoo.com.au> 2010-04-09 02:28:20 PDT ---
PATCH: TypeAArray::getImpl(), mtype.c line 3906.


#endif
+            // If there are global errors, TemplateInstance::semantic()
+            // will refuse to instantiate the template.
+            // So we need to temporarily set errors to zero.
+            int olderrors = global.errors;
+            global.errors = 0;
            ti->semantic(sc);
            ti->semantic2(sc);
            ti->semantic3(sc);
+            global.errors += olderrors;
            impl = ti->toAlias()->isStructDeclaration();

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 06, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3982


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #2 from Don <clugdbug@yahoo.com.au> 2010-05-05 23:50:40 PDT ---
Fixed DMD 2.044

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