public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* segfault with std::allocator
@ 2004-09-03 13:23 Toon Knapen
  2004-09-03 13:45 ` Eljay Love-Jensen
  0 siblings, 1 reply; 4+ messages in thread
From: Toon Knapen @ 2004-09-03 13:23 UTC (permalink / raw)
  To: gcc-help

Following problem segfaults with gcc 3.2.2 inside the deallocate 
function. AFAICT however, allocation and deallocation of 0 number of 
objects are allowed ?

<code>
<code>
#include <memory>

int main()
{
    std::allocator< int > int_alloc ;
    int* p = int_alloc.allocate( 0 ) ;
    int_alloc.deallocate( p, 0 ) ;
    return 0 ;
}
</code>



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

end of thread, other threads:[~2004-09-03 14:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-03 13:23 segfault with std::allocator Toon Knapen
2004-09-03 13:45 ` Eljay Love-Jensen
2004-09-03 13:57   ` Toon Knapen
2004-09-03 14:34     ` Eljay Love-Jensen

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).