Created
September 29, 2016 01:29
-
-
Save UplinkCoder/caebeaabf06960da098850bd966cc4d0 to your computer and use it in GitHub Desktop.
align
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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