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

Incorrect alias type naming of aliases for pointer to member types #349

Closed
mfurkanuslu opened this issue Oct 5, 2020 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@mfurkanuslu
Copy link

mfurkanuslu commented Oct 5, 2020

For example for this input;
auto m = &S::mem;

The output is:

using FuncPtr_7 = int S::*;
FuncPtr_7 m = &S::mem;

But m is actually a pointer to member variable.

@andreasfertig
Copy link
Owner

Hello @mfurkanuslu,

thanks for bringing this up. Can you please provide a full example? That helps for tests later and me to understand what you see that is wrong here. I'm not clear on that. Do you say something is invalid C++ in the transformation of your example, or do you say FuncPtr_7 should be named something like MemVarPtr?

Andreas

@andreasfertig andreasfertig added the awaiting-followup Waiting for more input label Oct 12, 2020
@mfurkanuslu
Copy link
Author

mfurkanuslu commented Oct 12, 2020

or do you say FuncPtr_7 should be named something like MemVarPtr?

Yes.

@andreasfertig andreasfertig added bug Something isn't working and removed awaiting-followup Waiting for more input labels Oct 12, 2020
@andreasfertig
Copy link
Owner

Hello @mfurkanuslu,

thanks for the clarification. A fix is on its way.

Andreas

andreasfertig added a commit that referenced this issue Oct 12, 2020
Fixed #349: Name pointer to member variable `MemberVarPtr`.
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