This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Missing compile-time warning for orphaned memory


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]