On 12/15/2014 01:30 PM, Jason Merrill wrote: > This patch implements the last remaining language feature for C++14, > global sized deallocation. C++ has always had sized deallocation at > class scope, but didn't for deletes that use the global operator delete. > > The support can be controlled separately from the -std level with the > -fsized-deallocation flag (same as clang). > > The compiler will warn about the unsized variant being defined without > the sized variant (or vice versa) with the -Wsized-deallocation flag, > which is also enabled by -Wextra. > > This patch also adds -Wc++14-compat, which currently only warns about a > deallocation function with a second size_t parameter changing from being > a placement delete to a usual deallocation function. > > Tested x86_64-pc-linux-gnu, applying to trunk. I suppose we should also declare these functions in . Jason