public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/6908] New: "return" without value in "unknown" type function causes an error.
@ 2008-09-22  5:02 mhiramat at redhat dot com
  2008-09-22 13:49 ` [Bug translator/6908] " fche at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: mhiramat at redhat dot com @ 2008-09-22  5:02 UTC (permalink / raw)
  To: systemtap

I found the following mysterious error message.
---
$ stap -e 'function func:unknown() { return }' -p2
parse error: expected 'string' or 'long'
	saw: identifier 'unknown' at <input>:1:15
1 parse error(s).
Pass 1: parse failed.  Try again with more '-v' (verbose) options.
---
I think no one can expect any *unknown* value...

-- 
           Summary: "return" without value in "unknown" type function causes
                    an error.
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: mhiramat at redhat dot com


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

------- 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 translator/6908] "return" without value in "unknown" type function causes an error.
  2008-09-22  5:02 [Bug translator/6908] New: "return" without value in "unknown" type function causes an error mhiramat at redhat dot com
@ 2008-09-22 13:49 ` fche at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: fche at redhat dot com @ 2008-09-22 13:49 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2008-09-22 13:47 -------
We don't have a return-value-less "return" statement, since that
would require the parser to understand types.  This particular
error message is by the way from the use of the "unknown" keyword
in the first place, which is not actually a keyword.

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


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

------- 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:[~2008-09-22 13:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-22  5:02 [Bug translator/6908] New: "return" without value in "unknown" type function causes an error mhiramat at redhat dot com
2008-09-22 13:49 ` [Bug translator/6908] " 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).