www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: clugdbug yahoo.com.au



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: -------
Sep 22 2011
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6712


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla digitalmars.com
            Version|D1 & D2                     |D1



00:19:31 PST ---
Won't fix for D2, as typedef is deprecated.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 21 2012