[Issue 6712] New: .init wrong when multiple functions declare the same typedef

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 22 00:54:31 PDT 2011


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

           Summary: .init wrong when multiple functions declare the same
                    typedef
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: clugdbug at yahoo.com.au


--- Comment #0 from Don <clugdbug at yahoo.com.au> 2011-09-22 00:54:03 PDT ---
Found when cleaning up the DMD test suite.

void firsttypedef()
{
    typedef int myint = 3;
}

void secondtypedef()
{
    typedef int myint = 7;
    static assert(myint.init == 7);
}

test.d(9): Error: static assert  (cast(myint)3 == 7) is false

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