This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/16097] improve error message on array type mismatch
- From: "jlebon at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Mon, 28 Oct 2013 22:07:59 +0000
- Subject: [Bug translator/16097] improve error message on array type mismatch
- Auto-submitted: auto-generated
- References: <bug-16097-6586 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=16097
--- Comment #1 from Jonathan Lebon <jlebon at redhat dot com> ---
Note by the way, that if we don't use a function, then the right tokens are
printed out:
$ stap -p2 -e '
global array
probe begin {
array[0] = 1
array[1] = "string"
}
'
semantic error: type mismatch (string vs. long): identifier 'array' at
<input>:7:4
source: array[1] = "string"
^
semantic error: type was first inferred here (long): identifier 'array' at :6:4
source: array[0] = 1
^
Pass 2: analysis failed. [man error::pass2]
--
You are receiving this mail because:
You are the assignee for the bug.