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

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

[Octave-bug-tracker] [bug #61472] AddressSanitizer crash in MEX tests


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #61472] AddressSanitizer crash in MEX tests
Date: Wed, 22 Dec 2021 10:55:28 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Follow-up Comment #45, bug #61472 (project octave):

The files like liboctave/array/Array-f.cc were originally intended only to
perform explicit instantiation of Array<T> objects for a specific type.  Maybe
now they also include some specializations for a few functions (I see
Array<float>::issorted in Array-f.cc, for example).  If these specializations
are still needed for speed, then I think we could declare them as extern in
Array.h and still provide them in liboctave.  But otherwise, provide a full
definition of the Array<T> template when Array.h is included and allow the
compiler to instantiate the template as needed.  Isn't that how <vector> and
other standard library templates work?

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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