FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Debian > Debian GCC

 
 
LinkBack Thread Tools
 
Old 07-18-2008, 12:57 PM
"Eduard Bloch"
 
Default Bug#485135: To fail or misbehave

> Please explain. In C++ there is no implicit conversion between int and
> char *.

Exactly. So if you check the return value then the compiler will fail (like in the test case above) and you are lucky to notice the problem.

But if you don't check it and rely on the function to do what it has to do (i.e. write the result into the buffer in the argument) then you silently get a buffer with undefined data back (most likely unchanged).

For my own code I added a workaround, testing _GNU_SOURCE and making a different call but it should be fixed upstream.

--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx



--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 07:15 AM.

VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org