Ticket #737 (closed bug: fixed)
imcc segfault when assigning to undefined retval
Reported by: | cotto | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | imcc | Version: | trunk |
Severity: | medium | Keywords: | |
Cc: | Language: | ||
Patch status: | Platform: | all |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.