gcc 6.1.0 bogus placement new warning

Jason Mancini Jason.Mancini@amd.com
Fri May 27 02:38:00 GMT 2016


> new (TheArray[x] + num) object(...); // warning kaboom

Found simpler work-around for the above issue:

new (*(TheArray+x) + num) object(...); // okay



More information about the Gcc-help mailing list