This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Missing compile-time warning for orphaned memory
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Samuel David <ssprog1 at gmail dot com>
- Cc: gcc at gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Thu, 3 May 2012 18:29:10 +0100
- Subject: Re: Missing compile-time warning for orphaned memory
- References: <CAKD23Nmqb7R2nZ5XGtQVXX8aWcwyiYGQ+bFszc=jaJBoTEdpUg@mail.gmail.com> <CAKD23Nkx5bDDLgxiWmpU=Si3LZ7=vLLks8=btRf8p2BfsN+a=Q@mail.gmail.com>
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.