Bug 467172 - glibc header signalfd.h error:expected initializer before ‘throw’
glibc header signalfd.h error:expected initializer before ‘throw’
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: glibc (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-16 03:57 EDT by Parag AN(पराग)
Modified: 2008-10-20 05:56 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-10-20 05:56:33 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Parag AN(पराग) 2008-10-16 03:57:19 EDT
Description of problem:
When any simple C++ file which includes <sys/signalfd.h> headers then its compilation fails with error
/usr/include/sys/signalfd.h:54: error: expected initializer before ‘throw’

Reference:-
While reviewing new package fbterm #465928 , I see above compilation problem. 

Version-Release number of selected component (if applicable):
glibc-2.8.90-13.fc10

How reproducible:
always

Steps to Reproduce:
1. compile source code 
---------------------------------------
#include <iostream>
#include <sys/signalfd.h>
using namespace std;
int main()
{
cout<<"Testing Throw";
return 0;
}
----------------------------------------
2. observe error
3.
  
Actual results:
/usr/include/sys/signalfd.h:54: error: expected initializer before ‘throw’

Expected results:
It should not report error.

Additional info:
I am not sure if this is correct to report bug to fix compilation error.
The solution I see is as
---------------------------------
#include <iostream>
#undef __THROW
#define __THROW
#include <sys/signalfd.h>
using namespace std;
int main()
{
cout<<"Testing Throw";
return 0;
}
--------------------------------
Comment 1 Jakub Jelinek 2008-10-20 05:56:33 EDT
Should be fixed in glibc-2.8.90-14 in rawhide.

Note You need to log in before you can comment on or make changes to this bug.