[Issue 4419] __gshared static in class has no effect

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 23 06:53:09 PST 2011


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



--- Comment #3 from Trass3r <mrmocool at gmx.de> 2011-02-23 06:50:26 PST ---
Ok 3 and 4 are caused by Parser::parseDeclDefs' layout.

If static comes first "case TOKstatic" is reached, TOKstatic is added and at
label Lstc2 TOKgshared is added. Then a single StorageClassDeclaration is
constructed with STCstatic|STCgshared.

If gshared comes first a chain of StorageClassDeclarations is constructed:
StorageClassDeclaration(gshared, StorageClassDeclaration(static, int a))

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


More information about the Digitalmars-d-bugs mailing list