www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6360] New: property is doubled in di files when used with auto

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

           Summary:  property is doubled in di files when used with auto
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: jmdavisProg gmx.com



PDT ---
As an example, take any property in core.time - say

     property long weeks() const pure nothrow { return get!"weeks"(); }

Now make it return auto instead of long. Rebuild druntime, and time.di will
have this for weeks:

        auto  property const pure nothrow  property  weeks()
{
return get!("weeks")();
}

Notice that  property is doubled. This will cause compilation errors for Phobos
such as

../druntime/import/core/time.di(136): redundant storage class identifier

However, if you change it back to long, you get

         property const pure nothrow long weeks()
{
return get!("weeks")();
}


So,  property and auto are not getting along when .di files are generated.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 21 2011
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6360


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch



https://github.com/D-Programming-Language/dmd/pull/404

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 22 2011
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6360


Walter Bright <bugzilla digitalmars.com> changed:

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



21:02:36 PDT ---
https://github.com/D-Programming-Language/dmd/commit/15f54382fb89671c1c640d8b7c11da3b3b923aa1

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 24 2011