Cannot Overload Placement Operator new in C++ 5.12 and Newer. (Doc ID 1915928.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Solaris Studio - Version 12.3 to 12.4 [Release 12]
Information in this document applies to any platform.

Symptoms

The Oracle Studio Studio 12.3 C++ compiler in default -compat=5 mode, and Oracle Solaris Studio 12.4 C++ in both default -compat=5 mode and -std=c++11 mode reject the following code:



Changes

To improve application runtime performance,
<BUG:15709679> SUNBT7037041 DEFAULT PLACEMENT NEW AND DELETE SHOULD BE DEFINED INLINE 

replaced the placement version of operator new with an faster inline version.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms