This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/16097] improve error message on array type mismatch


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

--- Comment #6 from Jonathan Lebon <jlebon at redhat dot com> ---
Sorry here's the proper output for the example in comment 5:

Without patch 2:

semantic error: type mismatch (long vs. string): identifier 'mylocal' at
<input>:7:1
        source: mylocal = 1
                ^

semantic error: type was first inferred here (string): identifier 'mylocal' at
:7:1
        source: mylocal = 1
                ^

With patch 2:

semantic error: type mismatch (long vs. string): identifier 'mylocal' at
<input>:8:1
        source: mylocal = func()
                ^

semantic error: type was first inferred here (string): identifier 'mylocal' at
:7:1
        source: mylocal = 1
                ^

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]