--- Additional Comments From philippe dot haution at mines-paris dot org
2004-11-02 15:58 ---
Well OK, I'll check with purify that res3 and res4 memory area is released
whether or not res5 has been intialized.
I will from now on use
vector& res5 = *(ert().release());
as th
--- Additional Comments From philippe dot haution at mines-paris dot org
2004-11-02 14:54 ---
You wrote about reference incrementing, but as far as auto_ptrs are concerned,
there's only ownership transfer of the underlying pointer.
res1 and res2 are OK, no problem about that.
But
) {
cerr << "unexpected exception" << endl;
return -5;
}
return 0;
}
--
Summary: weird behaviour on temporary return values
Product: gcc
Version: 3.4.1
Status: UNCONFIRMED
Severity: normal