bug-apl
[Top][All Lists]
Advanced

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

Re: sparse vector 'without' returns ⍬ with sufficiently large vector


From: Kacper Gutowski
Subject: Re: sparse vector 'without' returns ⍬ with sufficiently large vector
Date: Fri, 1 May 2020 15:44:47 +0200

On Fri, May 01, 2020 at 03:08:16PM +0200, Dr. Jürgen Sauermann wrote:
> Fixed in SVN 1275.

With g++ 9.3.0, it fails to build tripping on a warning:

g++ -DHAVE_CONFIG_H -I. -I..    -Wall -I sql -Werror     -rdynamic -g -O2 -MT 
apl-Bif_F12_FORMAT.o -MD -MP -MF .deps/apl-Bif_F12_FORMAT.Tpo -c -o 
apl-Bif_F12_FORMAT.o `test -f 'Bif_F12_FORMAT.cc' || echo './'`Bif_F12_FORMAT.cc
In file included from PrintBuffer.hh:30,
                 from Cell.hh:30,
                 from CharCell.hh:24,
                 from Value.hh:24,
                 from NamedObject.hh:25,
                 from Function.hh:27,
                 from PrimitiveFunction.hh:27,
                 from Bif_F12_FORMAT.hh:26,
                 from Bif_F12_FORMAT.cc:25:
Shape.hh: In member function ‘virtual Token Bif_F12_FORMAT::eval_B(Value_P)’:
Shape.hh:133:18: error: ‘shape_Z.Shape::rho[<unknown>]’ may be used 
uninitialized in this function [-Werror=maybe-uninitialized]
  133 |         if (rho[r])   { volume /= rho[r];  rho[r] = sh;  volume *= 
rho[r]; }
      |             ~~~~~^
Shape.hh: In member function ‘Value_P 
Bif_F12_FORMAT::format_by_specification(Value_P, Value_P)’:
Shape.hh:133:18: error: ‘shape_Z.Shape::rho[<unknown>]’ may be used 
uninitialized in this function [-Werror=maybe-uninitialized]
  133 |         if (rho[r])   { volume /= rho[r];  rho[r] = sh;  volume *= 
rho[r]; }
      |             ~~~~~^
cc1plus: all warnings being treated as errors

-k



reply via email to

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