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

The name of a variable of type "pointer to member" is misplaced #279

Closed
languagelawyer opened this issue Dec 26, 2019 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@languagelawyer
Copy link

For the code

struct S { void f(); };

int main()
{
    auto p = &S::f;
}

cppinsights produces

struct S
{
  void f();
  
};



int main()
{
  void (S::*)() p = &S::f;
}

while it should have produced

struct S
{
  void f();
  
};



int main()
{
  void (S::*p)() = &S::f;
}
@andreasfertig andreasfertig added the bug Something isn't working label Jan 2, 2020
@andreasfertig
Copy link
Owner

Hello @languagelawyer,

thank you for your continous support and bug reports! A fix is on its way.

Andreas

andreasfertig added a commit that referenced this issue Jan 2, 2020
Fixed #279: Added missing support for member function pointer.
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