Bugs item #2864179, was opened at 2009-09-22 12:30
Message generated for change (Comment added) made by arjenderijke
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2864179&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: SQL/Core
Group: SQL CVS Head
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Arjen de Rijke (arjenderijke)
Assigned to: Niels Nes (nielsnes)
Summary: function call not handled

Initial Comment:
When the result of a function call within a function is assigned to a variable 
and that variable is not used in the calling function, the called function is 
never executed. The attached file demonstrates this behaviour. It also 
explaines the failing of sql test src/test/Via-m/Tests/file_s18.

----------------------------------------------------------------------

Comment By: Arjen de Rijke (arjenderijke)
Date: 2009-09-25 10:10

Message:
According to
http://monetdb.cwi.nl/testing/projects/monetdb/Current/sql/.mTests103/GNU.64.64.d.0-Fedora10/src_test_Via-m/file_s18.out.00.html
of today the problem still exists. But maybe that test is more complicated
than the script i attached to this bugreport. To be precise, the problem
occurs in test file_s17, that contains the call to a function. And because
that function does not insert records into a table, the test file_s18
failes, because the table does not contain the records that are expected.

----------------------------------------------------------------------

Comment By: Niels Nes (nielsnes)
Date: 2009-09-23 21:45

Message:
fixed on current by martin

----------------------------------------------------------------------

Comment By: Stefan Manegold (stmane)
Date: 2009-09-22 12:49

Message:
Dead code elimination at work?

Or: dead code elimination does (can?) not recognize that your function has
a side effect, and hence skips the function call, since its result is not
used?


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2864179&group_id=56967

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to