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

Missing structs due to N-dimensional arrays #54

Closed
zedeus opened this issue Jan 21, 2019 · 1 comment
Closed

Missing structs due to N-dimensional arrays #54

zedeus opened this issue Jan 21, 2019 · 1 comment
Labels
enhancement New feature or request fixed toast

Comments

@zedeus
Copy link

zedeus commented Jan 21, 2019

struct foo { int foo[8][1]]; };
(translation_unit 1 1 30
 (struct_specifier 1 1 29
  (type_identifier 1 8 3)
  (field_declaration_list 1 12 18
   (field_declaration 1 14 14
    (primitive_type 1 14 3)
    (array_declarator 1 18 9
     (array_declarator 1 18 6
      (field_identifier 1 18 3)
      (number_literal 1 22 1)
     )
     (number_literal 1 25 1)
    )
   )
  )
 )
)
@genotrance genotrance added the enhancement New feature or request label Jan 21, 2019
@genotrance
Copy link
Collaborator

This is functional with the new ast2 backend.

toast -f:ast2 -n gives you the correct result.

type
  foo* = object
    foo*: array[8, array[1, cint]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fixed toast
Projects
None yet
Development

No branches or pull requests

2 participants