Skip to content

Conversation

@kinke
Copy link
Member

@kinke kinke commented Apr 26, 2015

Although they occupy 1 byte, D now apparently doesn't care about the actual data when comparing instances for (in)equality.

Fixes runnable/xtest46.d and runnable/cppa.d.

kinke added 2 commits April 26, 2015 02:13
Although they occupy 1 byte, D now apparently doesn't care about
the actual data when comparing instances for (in)equality.

Fixes runnable/xtest46.d and probably runnable/cppa.d too.
@kinke kinke mentioned this pull request Apr 26, 2015
With a single byte (implicit and 0) as initializer, as each void
element occupies 1 byte.

This is required when building T.init for a struct T containing
a void[N] with N > 0 and building literals of T.
@kinke
Copy link
Member Author

kinke commented Apr 26, 2015

The 3rd commit fixes runnable/testdt.d.

redstar added a commit that referenced this pull request Apr 26, 2015
Don't memcmp() empty struct types.
@redstar redstar merged commit 38df5e9 into ldc-developers:merge-2.067 Apr 26, 2015
@kinke kinke deleted the emptystruct branch August 24, 2017 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants