[Bug translator/21173] odd translator behavior with overloaded functions

dsmith at redhat dot com sourceware-bugzilla@sourceware.org
Mon Feb 20 21:16:00 GMT 2017


https://sourceware.org/bugzilla/show_bug.cgi?id=21173

--- Comment #3 from David Smith <dsmith at redhat dot com> ---
It looks like an overloaded function doesn't have to be involved, just a
function call with the right number of arguments but the wrong types:

====
# cat ../src/test.stp
#function foo:long(a:long, b:long)
#{
#       return (a + b)
#}

function foo:string(a:long, b:string, c:long)
{
        return sprintf("%s %d", b, a + c)
}

probe begin
{
        println(__inode_vfsmount(1))
        println(foo(1, 2, 3))
}
# stap -p2 ../src/test.stp
semantic error: unknown type in dereference: operator '&' at
/usr/local/share/systemtap/tapset/linux/dentry.stp:93:24
        source:                 head = &sb->s_mounts
                                       ^

Pass 2: analysis failed.  [man error::pass2]
====

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Systemtap mailing list