This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc 6.1.0 bogus placement new warning
- From: Jason Mancini <Jason dot Mancini at amd dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Thu, 26 May 2016 19:37:38 -0700
- Subject: Re: gcc 6.1.0 bogus placement new warning
- Authentication-results: sourceware.org; auth=none
- Authentication-results: gcc.gnu.org; dkim=none (message not signed) header.d=none;gcc.gnu.org; dmarc=none action=none header.from=amd.com;
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:23
new (TheArray[x] + num) object(...); // warning kaboom
Found simpler work-around for the above issue:
new (*(TheArray+x) + num) object(...); // okay