Missing compile-time warning for orphaned memory

Jonathan Wakely jwakely.gcc@gmail.com
Thu May 3 17:29:00 GMT 2012


On 3 May 2012 17:16, Samuel David wrote:
> Hi gcc team,
>
> The following code creates orphaned memory by ignoring the return value of new:

[...]

> Should g++ report a compile-time warning for this case?

Maybe.  If you think so then please open a bugzilla report asking for
a new warning, thanks.



More information about the Gcc mailing list