Code generation error when passing arguments by reference

 

Hi all,

Here is a piece of code, generating a 'code generation error' compilation error.

class A
{
   public:
      virtual int doSomething(
                     const int& elementsCount,
                        double& arrData[]
                                      )
      {
         return 0;
      }
};

A* g_pA;

int OnInit()
{

   g_pA = new A();
   int elementsCount = 1;
   double arrTemp[ 1 ];
   g_pA.doSomething(
            elementsCount,
            arrTemp
                   );
   return(0);
}

void OnDeinit(const int reason)
{
   delete g_pA;
}

void OnTick()
{
}

Does anybody have any clue what is the compiler's problem?

 

Thanks in advance,

Maxim

 

Thank you for your message.

Bug was fixed, wait for new build.

Reason: