public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug documentation/10927] New: do-while statement unimplemented, but documented
@ 2009-11-09 13:22 mjw at redhat dot com
  2009-11-10 18:12 ` [Bug documentation/10927] " fche at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: mjw at redhat dot com @ 2009-11-09 13:22 UTC (permalink / raw)
  To: systemtap

doc/langref.tex:

\subsection{do}
\index{do}
The \texttt{do} statement has the same syntax and semantics as in C.

\begin{vindent}
\begin{verbatim}
do STMT while (EXP)
\end{verbatim}
\end{vindent}

But parse.cxx (parser::parse_statement):
  // XXX: "do/while" statement?

$ stap -v -e 'probe begin { do { log("nothing"); } while (0); }'
WARNING: read-only local variable 'do' : identifier 'do' at <input>:1:15
 source: probe begin { do { log("nothing"); } while (0); }
                       ^
WARNING: eliding unused variable 'do': identifier 'do' at :1:15
 source: probe begin { do { log("nothing"); } while (0); }

-- 
           Summary: do-while statement unimplemented, but documented
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: documentation
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: mjw at redhat dot com


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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug documentation/10927] do-while statement unimplemented, but documented
  2009-11-09 13:22 [Bug documentation/10927] New: do-while statement unimplemented, but documented mjw at redhat dot com
@ 2009-11-10 18:12 ` fche at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: fche at redhat dot com @ 2009-11-10 18:12 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2009-11-10 18:11 -------
commit fc45038 undocuments this

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-10 18:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-09 13:22 [Bug documentation/10927] New: do-while statement unimplemented, but documented mjw at redhat dot com
2009-11-10 18:12 ` [Bug documentation/10927] " fche at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).