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

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

[Octave-bug-tracker] [bug #38142] Compiling with -std=c++11 introduces a


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #38142] Compiling with -std=c++11 introduces a couple make check failures
Date: Tue, 22 Jan 2013 12:41:12 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.52 Safari/537.17

URL:
  <http://savannah.gnu.org/bugs/?38142>

                 Summary: Compiling with -std=c++11 introduces a couple make
check failures
                 Project: GNU Octave
            Submitted by: mtmiller
            Submitted on: Tue 22 Jan 2013 07:41:11 AM EST
                Category: Libraries
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Inaccurate Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Compiling default with g++ 4.7 with -std=c++11 makes the following tests fail
for me on Debian 64-bit:


octave:1> test ../default/libinterp/interp-core/sparse-xpow.cc
  ***** assert (sparse (2i) .^ [3, 4], sparse ([-0-8i, 16]));
!!!!! test failed
assert (sparse (2i) .^ [3, 4],sparse ([-0 - 8i, 16])) expected
Compressed Column Sparse (rows = 1, cols = 2, nnz = 2 [100%])

  (1, 1) -> -0 - 8i
  (1, 2) ->  16 +  0i
but got
Compressed Column Sparse (rows = 1, cols = 2, nnz = 2 [100%])

  (1, 1) -> -1.4695e-15 - 8.0000e+00i
  (1, 2) ->  1.6000e+01 - 3.9187e-15i
values do not match



octave:2> test realpow
  ***** assert (realpow (1i,2), -1)
!!!!! test failed
realpow: produced complex result


Same build with g++ 4.7 with -std=c++98 or without -std passes the same tests.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?38142>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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