[Issue 7694] New: Internal error: e2ir.c 1251 when calling member	function inside struct via alias param
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Mar 12 12:42:44 PDT 2012
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=7694
           Summary: Internal error: e2ir.c 1251 when calling member
                    function inside struct via alias param
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: dmitry.olsh at gmail.com
--- Comment #0 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2012-03-12 12:42:51 PDT ---
As is the following gives assert on line 8 as expected, 
uncomment bootstrap to get Internal error: e2ir.c 1251
template Instruction(int ir)
{
    void match(alias s, alias  m)(){ m.nextState(); }
}
struct T{
    void nextState(){  assert(0); }
/*    void bootstrap()
    {
    return Instruction!(0).match!(this, this)();
    }*/
}
T t;
void main()
{
//  t.bootstrap();
  Instruction!(0).match!(t, t)();
}
on dmd 2.059head win7 x64
last commit: bcfd90aae05bd6259212ec870b2c037569029d77
-- 
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