[Issue 1144] ICE(template.c) template mixin causes DMD crash

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 12 11:58:53 PDT 2009


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


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

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


--- Comment #4 from Don <clugdbug at yahoo.com.au> 2009-09-12 11:58:52 PDT ---
This is the test case which is failing in dstress:

char[] testHelper(A ...)(){
   char[] result;
         foreach(t; a){
             result ~= "int " ~ t ~ ";\n";
         }
         return result;
}

     int main(){
         mixin( testHelper!( "hello", "world" )() );
         return 0;
     }

Note that in the foreach(), it's 'a' instead of 'A'. So it's a bad test, which
is actually an instance of bug 2229 (which I've just patched). The bug here was
indeed fixed in 1.014.

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