Standard C double array

Does anyone know what this means: (v6.06/02 or 6.08/06)

root [0] int x[2][4]
In file included from input_line_2:1:
/usr/local/src/root-6.06.02/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<int [4]>' requested here

the following code compiles in Apple LLVM version 8.1.0 (clang-802.0.42):

int main() {
  int x[2][3];

It seems ok with the latest root version:

root [1] int x[2][4]

(int [][4]) { { 0, 0, 0, 0 }, { 0, 0, 0, 0 } }
root [2]

Hi Olver,
Which version, 6.09/02?
It doesn’t work in Binder, linked from “Try it in your browser! (Beta)” on the homepage.
–thanks, Chris

I did the test with ROOT master but yes 6.09/02 should be fine I guess.

Nope, I fixed that just in time for the upcoming v6.10, fresh out of my keyboard. Nonetheless, thanks for reporting, Chris!


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.