The attached patch warns on new expressions for types that are over-allocated, when the "operator new" that will be called is not overridden. Either the operator new in the class or in the global space can override, unless it's a global operator new from a system header. This addresses PR9527.<div>
<br></div><div><div>pr9527-2.cc:13:3: warning: type 'Test' requires 64 bytes of alignment and the</div><div> default allocator only guarantees 16 bytes [-Woveraligned]</div><div> new Test;</div><div> ^</div>
</div><div><br></div><div>Nick</div><div><br></div>