1 2 3 4 5 6 7 8 9 10 11 12 13 14
// { dg-do compile } // { dg-additional-options "-Wall" } void* operator new[](__SIZE_TYPE__, void* __p); struct allocator { ~allocator(); }; void *foo (void *p) { return p ? new(p) allocator[1] : new allocator[1]; // { dg-bogus "uninitialized" } }