Bug 795995

Summary: math-finite.h lacks __THROW
Product: [Fedora] Fedora Reporter: Rob Hulswit <rob>
Component: glibcAssignee: Jeff Law <law>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 16CC: fweimer, jakub, law, schwab
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-22 18:25:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rob Hulswit 2012-02-22 00:41:50 UTC
Description of problem:

If <math.h> is included in a C++ file, with the flags -pedantic and -ffast-math, the compilation fails with a lot of errors about different
exception specifiers in mathcalls.h and math-finite.h

Version-Release number of selected component (if applicable):

glibc.x86_64 2.14.90-24.fc16.4

How reproducible:

Steps to Reproduce:
1. Execute the command
echo '#include <math.h>' | g++ -pedantic -ffast-math -O2 -xc++ - -S -o /dev/null
prints
  
Actual results:
Lots of errors about different exception specifiers.

Expected results:
No errors.

Additional info:

This is the upstream bug page:
http://sourceware.org/bugzilla/show_bug.cgi?id=13484

Comment 1 Rob Hulswit 2012-02-22 00:48:27 UTC
As far as I can see, the glibc commit that fixed this can be found at

http://sourceware.org/git/?p=glibc.git;a=commit;h=8ef4f244ff7116fa1b5d88e69c83bb1bcc85afc6

Comment 2 Jeff Law 2012-02-22 18:25:13 UTC
This is fixed in rawhide & f17.  I'm not planning to backport this change to f15/f16.