Ticket #792 (new bug)
Bug in subroutine calling conventions
| Reported by: | Axle | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | core | Version: | 1.0.0 |
| Severity: | medium | Keywords: | subroutine calling |
| Cc: | Language: | ||
| Patch status: | Platform: | linux |
Description
When running this code with the command 'parrot -':
.sub 'main' :main
'aux'(5, 'hello', "b" => 3.14)
.end
.sub 'aux'
.param int a
.param num b :named("b")
.param string c :optional
.param int has_c :opt_flag
say a
say b
say c
.end
I get this error:
FixedIntegerArray: index out of bounds!
current instr.: 'aux' pc 16 (-:5)
called from Sub 'main' pc 11 (-:2)
Change History
Note: See
TracTickets for help on using
tickets.
