-
-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The `union` is not created as packed type. This seems to create problems with the default initializer: struct Foo { static union Bar { bool b; ulong l; } Bar bar; } static this() { Foo foo = Foo(); } creates an error. If you change the order inside the union static union Bar { ulong l; bool b; } then the code works. Also cleans up the creation of the additonal zeroes for the initializer.
- Loading branch information
Showing
3 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Submodule dmd-testsuite
updated
1 files
+15 −0 | compilable/ldc_github_841.d |