www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3485] New: [tdpl] Double bug in typedef

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3485

           Summary: [tdpl] Double bug in typedef
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: andrei metalanguage.com


--- Comment #0 from Andrei Alexandrescu <andrei metalanguage.com> 2009-11-07
08:34:09 PST ---
unittest {
    typedef double Mass;
    Mass m1 = 10;           // works, should NOT work
    Mass m2 = 10.0;         // does not work, should NOT work
    auto m3 = Mass(10);     // does not work, SHOULD work
    auto m4 = Mass(10.0);   // does not work, SHOULD work
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 07 2009
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3485


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |WONTFIX


--- Comment #1 from Walter Bright <bugzilla digitalmars.com> 2009-11-18
10:53:01 PST ---
Dropping typedef, so won't fix.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 18 2009