Cannot initialize 2D array in 5.18


It works in 5.14,but fails in 5.18. No idea what's going on. I appreciate any help.

It works in 5.14,but fails in 5.18. No idea what’s going on. I appreciate any help.

Forget to mention the system (RedHat Enterprise 5)

Linux * 2.4.21-57.EL #1 Wed Apr 23 01:46:01 EDT 2008 i686 i686 i386 GNU/Linux

how does it fail?

Philippe

Although CINT is not C++, you should try a valid C++ expression.
e.g.
Double_t a[][2]={ {1,2},{3,4} };

or
Double_t b[2][2]={ {1,2},{3,4} };

Cheers, J.

Thank for your replies. It seems I have to use a[][2] to initialize. Since i didn’t change gcc version during compile root5.14 and 5.18, I guess root adds more requirement in the code.