My Oracle Support Banner

'Too many arguments in call to "operator new(unsigned)"' Error When Overloading Operators new()/delete() (Doc ID 2811435.1)

Last updated on DECEMBER 07, 2023

Applies to:

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

Symptoms

Given the following code

The above issue occurs for Studio CC compiler 12.4 and higher.

WORKAROUND
-------------------
If the operator new() declaration is moved before the template struct AllocTest declaration the code compiles successfully.

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.