[Issue 3982] [ICE] a.values on wrong AA

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 9 02:30:38 PDT 2010


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


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

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


--- Comment #1 from Don <clugdbug at 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: -------


More information about the Digitalmars-d-bugs mailing list