#737: imcc segfault when assigning to undefined retval
--------------------+-------------------------------------------------------
Reporter: cotto | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: imcc | Version: trunk
Severity: medium | Keywords:
Lang: | Patch:
Platform: all |
--------------------+-------------------------------------------------------
The following snipped of code kills imcc with a segfault.
{{{
.sub main
(foo) = baz()
.end
}}}
This obviously shouldn't compile, but a more graceful failure is probably
appropriate. The following code works as expected, so I'd guess this has
to do with foo not being defined.
{{{
.sub main
.local pmc foo
(foo) = baz()
.end
.sub baz
.return(1)
.end
}}}
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/737>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets