# New Ticket Created by  Jens Rieks 
# Please include the string:  [perl #29994]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=29994 >


% cat error.imc
.sub _main @MAIN
    .local string na123me

    na123me = "/foo"
    loadlib $P0, na123me

    end
.end

% ./parrot -o error.pbc error.imc
Couldn't load 'runtime/parrot/a123m': runtime/parrot/a123m: cannot open shared 
object file: No such file or directory

This is caused by imcc/parser_util.c:INS, where a test is done to check if the 
current instruction is "loadlib"; if it is, the second argument is treat as a 
string; this fails if it actually is a variable name.

Reply via email to