[Bug translator/11491] New: attempt backward compatibility affected by PR11038
fche at redhat dot com
sourceware-bugzilla@sourceware.org
Mon Apr 12 18:57:00 GMT 2010
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.
More information about the Systemtap
mailing list