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

           Summary: __gshared on class member variable implies static?
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: bra...@puremagic.com


--- Comment #0 from Brad Roberts <bra...@puremagic.com> 2010-12-10 01:23:07 PST 
---
module buggshared;

class A
{
    shared static this()
    {  
        supported["foo"] = "bar";
    }

    __gshared string[string] supported;
}

This builds, which means that__gshared in a class scope implies static?  That
doesn't seem like a good idea.  I didn't find where that's documented either.

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

Reply via email to