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


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

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


--- Comment #1 from Don <clugd...@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: -------

Reply via email to