Unable to create 2 dimensional array in interpreter


I recently tried to create 2 dimensional array in the interpreter of ROOT6.06.02
and I got this.
Is it expected behavior?
Thank you.

root [0] Double_t x[2][2]
In file included from input_line_2:1:
root/build/etc/cling/Interpreter/RuntimeUniverse.h:167:11: error: 
      array 'new' cannot have initialization arguments
          new ((void*)(((T*)placement) + i)) T(src[i]);
          ^                                    ~~~~~~
note: in instantiation of function template specialization
      'cling::runtime::internal::copyArray<double [2]>' requested here

So, am I the only one suffering from this error?


You’re not: sft.its.cern.ch/jira/browse/ROOT-7479

The bug report also mentions a work around, but it’s not really a good one. I really hope that I’ll get around to fixing this “soon”… (Patches welcome!)

Cheers, Axel.

Oh. It’s already had in fixing.

I’ll close the

Thank you!