www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10492] New: Illegal Instruction for mixin template with scope declarations

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

           Summary: Illegal Instruction for mixin template with scope
                    declarations
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: changlon gmail.com



code:
----------------------
class TestClass{}
mixin template test(string name){
    mixin("scope " ~ name ~ " = new TestClass;" );
}
void main(){
    mixin test!("var");
}
---------------------

run error:
--------------------
object.Error: Illegal Instruction
----------------
0x0012FE30
0x00402BFC
0x00402C37
0x00402835
0x00402098
0x7C817067 in RegisterWaitForInputIdle
--------------------

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