id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,lang,patch,platform
944,Exception handling in top-level main function is broken.,bacek,,"Hello.

{{{
bacek@icering:~/src/parrot$ cat e2.pir 
.sub main :main
    $P0 = newclass 'Foo'
    $P0 = new ['Foo']
    push_eh catch
    $S0 = $P0
    say ""huh?""
    .return()
catch:
    say ""caught""
    .return()
.end

.namespace ['Foo']

.sub get_string :vtable :method
    $P0 = new ['Exception']
    throw $P0
.end

bacek@icering:~/src/parrot$ ./parrot e2.pir 
caught
huh?
Segmentation fault
}}}

-- 
Bacek",bug,closed,normal,,core,trunk,medium,fixed,,,,,
