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

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

[Octave-bug-tracker] [bug #55547] libstdc++ assertion failure when built


From: Rik
Subject: [Octave-bug-tracker] [bug #55547] libstdc++ assertion failure when built with -D_GLIBCXX_ASSERTIONS=1
Date: Wed, 23 Jan 2019 12:00:12 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #1, bug #55547 (project octave):

I suggest that this work be done on the development branch first, and grafted
on to stable if it works correctly.  The change is likely to be deep in
liboctave which might be too disruptive just before a release.

The obvious way to implement this is to check for NaN at the innermost loop of
the power operator.  That will incur a penalty that most systems shouldn't
have to bear.  The most straightforward approach would be to code this check
inside of an #ifdef on __GLIBCXX_ASSERTIONS.

@Mike: Do we need to inspect both the base and the exponent or just the
exponent?  Which of these code constructs causes the assertion?


## Exponent
10^NaN

## Base
NaN^10




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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