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

Cannot perform member access on this type #83

Closed
GloriousPtr opened this issue Jan 20, 2024 · 8 comments
Closed

Cannot perform member access on this type #83

GloriousPtr opened this issue Jan 20, 2024 · 8 comments
Labels
Bug A report of unintended or broken behavior.

Comments

@GloriousPtr
Copy link
Contributor

Member access through references don't work
image

@ryanfleury ryanfleury added the Bug A report of unintended or broken behavior. label Jan 20, 2024
@Husamdababneh
Copy link

@ryanfleury This also happens when trying to access a pointer, but dereferencing it and then access the members using '.' works

@ryanfleury
Copy link
Collaborator

Reproduced the reference . operator case, I must've broken this at some point... Fixing that now.

@Husamdababneh it should work on pointers. Can you be more specific about what you're seeing? Are your pointers modified in any way, e.g. const or volatile?

@ryanfleury
Copy link
Collaborator

Fixed accessing reference members in f11b128.

@ryanfleury
Copy link
Collaborator

Fixed constant pointer/reference member accesses in f75ee24. Regular pointers should work, so I think I've addressed the bug you were referencing @Husamdababneh. Let me know if that is not the case.

@Husamdababneh
Copy link

@ryanfleury Yes It was actually const pointer, thank you

This following image is just to make it clear for other readers (Watch window, last two lines)

const_pointer_member_access

@ryanfleury
Copy link
Collaborator

Cool. Yep, this should be fixed now.

@Husamdababneh
Copy link

Husamdababneh commented Jan 20, 2024

@ryanfleury , I'm very sorry, but another thing I just noticed, dereferencing the pointer does not do anything , if this is already fixed just ignore this comment

msvc-derefrence

rdbg-derefrence

@ryanfleury
Copy link
Collaborator

That should be fixed in 2a27b5a.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A report of unintended or broken behavior.
Projects
None yet
Development

No branches or pull requests

3 participants