Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty field name for anonymous union with defined field name #67

Closed
TechInterMezzo opened this issue Dec 1, 2022 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@TechInterMezzo
Copy link

Referencing my comment from the last issue: #66 (comment)

struct STRUCTURE
{
  unsigned long long u64GUID;
  unsigned long long u64OwnerGUID;
  unsigned int u32Flags;
  unsigned int u32RefCount;

  union
  {
    void* stLinkListNode;
    void* stTreeNode;
  } stStorage;

};

Although the union has a field named "stStorage" an unnamed field gets listed right before "stStorage" having the same union as field type.

There is a regression with the fix for that bug. As I would expect there is one field now instead of two. But this time I get an unnamed field instead of one named "stStorage".

xoofx added a commit that referenced this issue Dec 1, 2022
@xoofx xoofx added the bug Something isn't working label Dec 1, 2022
@xoofx
Copy link
Owner

xoofx commented Dec 1, 2022

Ah! That was an oversight. I wanted to fix it in the test and forgot. Fixed by commit 0095344, 0.9.4 on its way.

@xoofx xoofx closed this as completed Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants