bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Revision 1155: array subscript is below array bounds


From: Jerome Ibanes
Subject: Re: [Bug-apl] Revision 1155: array subscript is below array bounds
Date: Sat, 25 May 2019 15:40:48 -0700

Revision 1156.

g++ -DHAVE_CONFIG_H -I. -I..    -Wall -I sql -Werror     -rdynamic -g
-O2 -MT apl-PrimitiveFunction.o -MD -MP -MF
.deps/apl-PrimitiveFunction.Tpo -c -o apl-PrimitiveFunction.o `test -f
'PrimitiveFunction.cc' || echo './'`PrimitiveFunction.cc
In file included from PrintBuffer.hh:28:0,
                 from Cell.hh:30,
                 from CharCell.hh:24,
                 from Value.hh:24,
                 from ArrayIterator.hh:25,
                 from PrimitiveFunction.cc:24:
Shape.hh: In static member function ‘static Value_P
Bif_COMMA::prepend_scalar(const Cell&, Axis, Value_P)’:
Shape.hh:109:41: error: array subscript is below array bounds
[-Werror=array-bounds]
    { Assert(r < rho_rho);   return rho[r]; }
                                         ^
Shape.hh: In static member function ‘static Value_P
Bif_COMMA::append_scalar(Value_P, Axis, const Cell&)’:
Shape.hh:109:41: error: array subscript is below array bounds
[-Werror=array-bounds]
    { Assert(r < rho_rho);   return rho[r]; }
                                         ^
Shape.hh: In static member function ‘static Token
Bif_COMMA::catenate(Value_P, Axis, Value_P)’:
Shape.hh:109:41: error: array subscript is below array bounds
[-Werror=array-bounds]
    { Assert(r < rho_rho);   return rho[r]; }
                                         ^
Shape.hh:109:41: error: array subscript is below array bounds
[-Werror=array-bounds]
    { Assert(r < rho_rho);   return rho[r]; }
                                         ^
cc1plus: all warnings being treated as errors
Makefile:2664: recipe for target 'apl-PrimitiveFunction.o' failed
make[3]: *** [apl-PrimitiveFunction.o] Error 1

On Sat, May 25, 2019 at 10:52 AM Dr. Jürgen Sauermann
<address@hidden> wrote:
>
> Hi Jerome,
>
> I could not find anything wrong; the warning may or may not be bogus.
>
> I nevertheless made a change to narrow down the problem and to make the
> array subscript more explicit. Unfortunately the warnings below do not provide
> sufficient information as to where exactly the problem was detected by the 
> compiler.
>
> Please let me know if the warning occurs also in SVN 1156.
>
> Thanks,
> Jürgen
>
>
>
>
> On 5/25/19 5:33 AM, Jerome Ibanes wrote:
>
> Linux x86_64, Debian 8, g++ 4.9.2-10+deb8u1.
> GNU APL Revision 1155.
>
> [...]
> g++ -DHAVE_CONFIG_H -I. -I..    -Wall -I sql -Werror     -rdynamic -g
> -O2 -MT apl-PrimitiveFunction.o -MD -MP -MF
> .deps/apl-PrimitiveFunction.Tpo -c -o apl-PrimitiveFunction.o `test -f
> 'PrimitiveFunction.cc' || echo './'`PrimitiveFunction.cc
> In file included from PrintBuffer.hh:28:0,
>                  from Cell.hh:30,
>                  from CharCell.hh:24,
>                  from Value.hh:24,
>                  from ArrayIterator.hh:25,
>                  from PrimitiveFunction.cc:24:
> Shape.hh: In static member function ‘static Value_P
> Bif_COMMA::prepend_scalar(const Cell&, Axis, Value_P)’:
> Shape.hh:109:41: error: array subscript is below array bounds
> [-Werror=array-bounds]
>     { Assert(r < rho_rho);   return rho[r]; }
>                                          ^
> Shape.hh: In static member function ‘static Value_P
> Bif_COMMA::append_scalar(Value_P, Axis, const Cell&)’:
> Shape.hh:109:41: error: array subscript is below array bounds
> [-Werror=array-bounds]
>     { Assert(r < rho_rho);   return rho[r]; }
>                                          ^
> Shape.hh: In static member function ‘static Token
> Bif_COMMA::catenate(Value_P, Axis, Value_P)’:
> Shape.hh:109:41: error: array subscript is below array bounds
> [-Werror=array-bounds]
>     { Assert(r < rho_rho);   return rho[r]; }
>                                          ^
> Shape.hh:109:41: error: array subscript is below array bounds
> [-Werror=array-bounds]
>     { Assert(r < rho_rho);   return rho[r]; }
>                                          ^
> cc1plus: all warnings being treated as errors
> Makefile:2664: recipe for target 'apl-PrimitiveFunction.o' failed
>
> Thank you.
>
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]