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/5111] New: translator silently ignores "then" instead of "{"


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.


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