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: Markus Mützel
Subject: [Octave-bug-tracker] [bug #61472] AddressSanitizer crash in MEX tests
Date: Wed, 22 Dec 2021 11:05:52 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36 Edg/96.0.1054.62

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

We currently have this in Array.cc to prevent accidental implicit
instantiations of the Array<T> class template (IIUC):

template <typename T, typename Alloc>
OCTARRAY_API
void Array<T, Alloc>::instantiation_guard ()
{
  // This guards against accidental implicit instantiations.
  // Array<T, Alloc> instances should always be explicit and use
INSTANTIATE_ARRAY.
  T::__xXxXx__ ();
}


What was the motivation for that? Is that no longer an issue? Or can we make
changes so that Array<T> can be implicitly instantiated?

    _______________________________________________________

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]