www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11215] New: `inout` lose enclosing `shared` on resolution

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

           Summary: `inout` lose enclosing `shared` on resolution
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: verylonglogin.reg gmail.com


--- Comment #0 from Denis Shelomovskij <verylonglogin.reg gmail.com> 2013-10-10
13:26:28 MSD ---
E.g. `shared(inout(void)**)` is incorrectly resolved to
`shared(<qualifier>(void))**`.
---
shared(inout(void)**) f(inout int);

static assert(is(typeof(f(0)) == shared(void**))); // fails
static assert(is(typeof(f((const int).init)) == shared(const(void)**))); //
fails
---

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 10 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11215


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-10-12 22:36:22 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2658

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 12 2013