Skip to content

Commit

Permalink
Also allow __gshared and synchronized/override/abstract/final combina…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
9rnsr committed May 24, 2013
1 parent 4460aee commit b3731ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/declaration.c
Expand Up @@ -1157,7 +1157,7 @@ void VarDeclaration::semantic(Scope *sc)
else if (type->isWild())
storage_class |= STCwild;

if (storage_class & (STCmanifest | STCstatic))
if (storage_class & (STCmanifest | STCstatic | STCgshared))
{
}
else if (isSynchronized())
Expand Down
4 changes: 4 additions & 0 deletions test/runnable/declaration.d
Expand Up @@ -219,6 +219,10 @@ class C10144
override { static s2 = [Act.don]; }
abstract { static s3 = [Act.don]; }
final { static s4 = [Act.don]; }
synchronized { __gshared gs1 = [Act.don]; }
override { __gshared gs2 = [Act.don]; }
abstract { __gshared gs3 = [Act.don]; }
final { __gshared gs4 = [Act.don]; }
}

/***************************************************/
Expand Down

0 comments on commit b3731ce

Please sign in to comment.