octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #65525] (image) should #include <cassert>


From: Dmitri A. Sergatskov
Subject: [Octave-bug-tracker] [bug #65525] (image) should #include <cassert>
Date: Thu, 28 Mar 2024 12:00:52 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?65525>

                 Summary: (image) should #include <cassert>
                   Group: GNU Octave
               Submitter: dasergatskov
               Submitted: Thu 28 Mar 2024 04:00:52 PM UTC
                Category: Octave Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: GNU/Linux
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Thu 28 Mar 2024 04:00:52 PM UTC By: Dmitri A. Sergatskov <dasergatskov>
With a recent dev version I see:

g++ -std=gnu++17 -I/usr/local/include/octave-10.0.0/octave/..
-I/usr/local/include/octave-10.0.0/octave -I/usr/local/include  -pthread
-fopenmp -ggdb3 -O2 -march=native -mtune=native -mavx -mavx2 -flto=auto -g 
-Wall -O2 -o bwdist.oct  /tmp/oct-K6Y6gi.o   -shared -Wl,-Bsymbolic 
-L/usr/local/lib -shared -Wl,-Bsymbolic   
strel.cc: In member function ‘octave_image_pkg::strel
octave_image_pkg::strel::operator()(const octave_idx_type&) const’:
strel.cc:148:3: error: ‘assert’ was not declared in this scope
  148 |   assert (i >= 0 && i < octave_idx_type (decomposition.size ()));
      |   ^~~~~~
strel.cc:33:1: note: ‘assert’ is defined in header ‘<cassert>’; did
you forget to ‘#include <cassert>’?
   32 | #include "octave-wrappers.h"
  +++ |+#include <cassert>
   33 | 
strel.cc: In member function ‘void
octave_image_pkg::strel::validate_origin()’:
strel.cc:335:3: error: ‘assert’ was not declared in this scope
  335 |   assert (ndims == origin.numel ());
      |   ^~~~~~
strel.cc:335:3: note: ‘assert’ is defined in header ‘<cassert>’; did
you forget to ‘#include <cassert>’?


See 
https://octave.discourse.group/t/assert-panic-error-and-ndebug/5409/10

for discussion.

Dmitri.
-- 










    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65525>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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