[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45411] octave_int<T>::octave_int(char) is inv
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #45411] octave_int<T>::octave_int(char) is invalid on Sparc Solaris |
Date: |
Mon, 03 Aug 2015 17:10:34 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Firefox/38.0 |
Update of bug #45411 (project octave):
Category: Configuration and Build System => Libraries
Status: Need Info => Confirmed
Summary: cast fail at liboctave/util/oct-inttypes.h on Sparc
Solaris => octave_int<T>::octave_int(char) is invalid on Sparc Solaris
_______________________________________________________
Follow-up Comment #7:
I am working with the original reporter of this problem (Tatsuro, no more need
to copy messages back and forth, but thanks for your help so far!) I can
confirm that this function overload is invalid because of what I suspected,
that on Sparc Solaris the int8_t is defined to be "char" instead of "signed
char". On Linux, both are signed, but they are distinct types in the C++
language so they can be safely overloaded.
The quickest way I can see around this is to not compile that particular
overload.
This particular overload was added to fix bug #42054 (see changeset
http://hg.savannah.gnu.org/hgweb/octave/rev/37c300acfcfd). Is there a
different way to solve the original problem without this problematic
overload?
Updating bug meta info.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45411>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #45411] octave_int<T>::octave_int(char) is invalid on Sparc Solaris,
Mike Miller <=