Skip to content

Instantly share code, notes, and snippets.

@UplinkCoder
Created September 29, 2016 01:29
Show Gist options
  • Select an option

  • Save UplinkCoder/caebeaabf06960da098850bd966cc4d0 to your computer and use it in GitHub Desktop.

Select an option

Save UplinkCoder/caebeaabf06960da098850bd966cc4d0 to your computer and use it in GitHub Desktop.
align
diff --git a/src/dstruct.d b/src/dstruct.d
index a1dc22d..12366a3 100644
--- a/src/dstruct.d
+++ b/src/dstruct.d
@@ -299,7 +299,8 @@ extern (C++) class StructDeclaration : AggregateDeclaration
if (semanticRun == PASSinit)
{
protection = sc.protection;
-
+ if (sc && sc.aligndecl && !sc.aligndecl._scope && sc.parent._scope)
+ sc.aligndecl._scope = sc.parent._scope;
alignment = sc.alignment();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment