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

Fix sizeof test compiler PR #236 #95

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions formats_err/expr_sizeof_cyclic_dependency.ksy
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# expr_sizeof_cyclic_dependency.ksy: /seq/0/if:
# error: unable to derive sizeof for type `expr_sizeof_cyclic_dependency`: dynamic sized type
#
meta:
id: expr_sizeof_cyclic_dependency
-gh-issue: https://github.com/kaitai-io/kaitai_struct/issues/927
seq:
- id: value
size: 2
if: _sizeof == 1
8 changes: 5 additions & 3 deletions formats_err/expr_sizeof_value_dynamic3.ksy
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# ?
# expr_sizeof_value_dynamic3.ksy: /instances/body_sizeof/value:
# error: unable to derive sizeof of `Name(identifier(body))`: dynamic sized type
#
meta:
id: expr_sizeof_value_dynamic3
endian: le
seq:
- id: num
- id: num_body
type: u2
- id: body
type: u1
repeat: expr
repeat-expr: num
repeat-expr: num_body
instances:
body_sizeof:
value: body._sizeof