bugGNU Octave - Bugs: bug #38142, Compiling with -std=c++11...

 
 

bug #38142: Compiling with -std=c++11 introduces a couple make check failures

Submitted by:  Mike Miller <mtmiller>
Submitted on:  Tue 22 Jan 2013 12:41:11 PM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Inaccurate Result
Status: Wont FixAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 23 Jan 2013 01:43:02 AM UTC, comment #3:

Ok, I guess I just closed it...

Mike Miller <mtmiller>
Project Administrator
Wed 23 Jan 2013 01:42:37 AM UTC, comment #2:

Yeah, my mistake, I must have missed that discussion. I didn't dig too deep when I submitted this. I looked it up now, here's the relevant part of the thread for reference:

http://octave.1599824.n4.nabble.com/Welcome-C-11-td4647840.html#a4647903

I agree, there should ideally not be any round-off error, but if we're basically just relying on the library, then pow(complex<double>, double) is all we can count on being implemented. I guess it could potentially be handled in libstdc++ at some point.

Feel free to close as won't fix or leave open as you like, I'm not overly concerned about it at the moment.

Mike Miller <mtmiller>
Project Administrator
Tue 22 Jan 2013 03:30:00 PM UTC, comment #1:

I'm not sure build failures with C++11 are a bug.

As an annoying thing that we've discussed on the mailing list, C++11 apparently gets rid of the std::pow(double,int) specialisation that gives you e.g. pow(1.5,2) exactly, without round-off error.

The tests that fail here seem to be related to std::pow, and I think pow(1.5,2) should not have round-off error. Are other library implementors besides GNU doing this?

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Tue 22 Jan 2013 12:41:11 PM UTC, original submission:

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

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

Mike Miller <mtmiller>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jordigh (Posted a comment)
  • -unavailable- added by mtmiller (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 23 Jan 2013 01:42:37 AM UTCmtmillerStatusNone=>Wont Fix
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1