Re: Declarations cause "Error: Non-static-const variable in array dimension"

From: Stefan Piperov <piperov_at_fnal.gov>
Date: Thu, 8 Apr 2010 15:49:57 +0300

Benjamin, try compiling with "-pedantic" option, and you'll see that the code does not compile "fine", but rather _barely_ :)

It's just that the compiler is rather forgiving, and does not complain in the cases where it can figure it out for itself what the code should mean.

Stefan.

On Thu, 8 Apr 2010, Benjamin Bannier wrote:

> Hi Stefan,
>
>> Ida, that's basic C++, not ROOT specific issue.
>> Do you really want to bother this list with it?!
>
> not to make too much noise myself, but this code actually compiles fine
> in gcc-4.3.2, but CINT treats it as an error.
>
>
> Cheers,
>
> Benjamin
>

*---------------------------------------------------------------------*
  Stefan Piperov      Mail: FNAL P.O.Box 500, MS 205, Batavia, IL-60510
  Phone: (630) 840-5176                        E-Mail: piperov_at_fnal.gov
*---------------------------------------------------------------------*
"Give a skeptic an inch... and he'll measure it." Received on Thu Apr 08 2010 - 14:50:03 CEST

This archive was generated by hypermail 2.2.0 : Thu Apr 08 2010 - 17:50:02 CEST