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

Dimensions swapped in new expression with multidimension array #106

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

Comments

@languagelawyer
Copy link

For the code

int main()
{
    auto p = new int[2][3];
}

cppinsight swaps the dimensions

int main()
{
  int (*)[3] p = new int [3][2];
}
@andreasfertig
Copy link
Owner

Hi @languagelawyer,

thanks for the finding. I need to add tests which check the result. Fix is on its way.

@andreasfertig andreasfertig added the bug Something isn't working label Jan 9, 2019
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