[Issue 9790] New: Internal error when compiling a invalid variable in template (in expression.c and backend\evalu8.c)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 23 06:55:08 PDT 2013


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

           Summary: Internal error when compiling a invalid variable in
                    template (in expression.c and backend\evalu8.c)
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: enjouzensyou.boinc at gmail.com


--- Comment #0 from Kazuki Komatsu <enjouzensyou.boinc at gmail.com> 2013-03-23 06:55:07 PDT ---
/** NG
*DMD version : git 8f9fe3b
(https://github.com/D-Programming-Language/dmd/commit/8f9fe3ba2dbeae16effc52310ed8ab82bf5af5fc)

e = 00478AC0, ty = 35
_error_ 00A5C680
e = 00478AC0, ty = 35
_error_ 00A5C680
Internal error: backend\evalu8.c 279


*DMD version : 2.062

Assertion failure: '0' on line 2178 in file 'expression.c'
*/
template foo()
{
    enum bool _foo = _Unused_._unused_;

    enum bool foo = _foo;
}


/** OK : (Compile Error)
C:\d_programming\dtest.d(29): Error: undefined identifier _Unused_
C:\d_programming\dtest.d(35): Error: template instance dtest.bar!() error
instantiating
*/
template bar()
{
    enum bool bar = _Unused_._unused_;
}


unittest{
    assert(foo!());
    //assert(bar!());
}

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