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/11491] New: attempt backward compatibility affected by PR11038


bug #11038 changed systemtap grammar.  This construct used to be invalid, but
has become valid after version 1.1:

if (condition) printf("something") ;
else if (condition2) // ... 

The semicolon used to be invalid with systemtap versions < 1.1, since
the semicolon was purely a 'null statement' that would indicate to the
if/else parser that there is no else clause coming.

With bug #11343's --compatible=VERSION option, we could teach the new
parser to enforce the version <1.1 behavior in this case, and reject
the script.

This was a more subtle language change than recent pure extensions
such as @defined / try/catch, which are more self-explanatory if
an older systemtap version attempts to process them.

-- 
           Summary: attempt backward compatibility affected by PR11038
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: fche at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=11491

------- 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]