[Bug translator/5111] New: translator silently ignores "then" instead of "{"
dcnltc at us dot ibm dot com
sourceware-bugzilla@sourceware.org
Thu Oct 4 23:15:00 GMT 2007
In the following tapscript I unwittingly inserted "then" in an if stmt. The
translator accepted this without complaint, but basically ignored the if.
I was expecting a syntax error. Is this a legal if stmt?
function func:long ()
%{
THIS->__retvalue = -1;
%}
probe begin
{
if (func() < 0) then
print("why no syntax error\n")
printf("after if stmt\n")
}
--
Summary: translator silently ignores "then" instead of "{"
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P3
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: dcnltc at us dot ibm dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=5111
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Systemtap
mailing list