Bug 684694

Summary: Including <sys/timex.h> results in a compilation error
Product: Red Hat Enterprise Linux 6 Reporter: Douglas Kosovic <douglask>
Component: glibcAssignee: Andreas Schwab <schwab>
Status: CLOSED DUPLICATE QA Contact: qe-baseos-tools-bugs
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.0CC: fweimer
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-14 09:54:52 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:
Attachments:
Description Flags
C++ test file none

Description Douglas Kosovic 2011-03-14 09:11:04 UTC
Created attachment 484107 [details]
C++ test file

Description of problem:

The following code:

#include <sys/timex.h>
int main(int argc, char **argv) {
 return 0;
}

results in a compilation error when compiling with g++:

$ g++ test.cpp
In file included from test.cpp:1:
/usr/include/sys/timex.h:145: error: expected initializer before ‘throw’


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

glibc-headers-2.12-1.7.el6.x86_64

How reproducible:
reproducible if attached file is compiled with g++, but not with gcc.


Additional info:

On Fedora it was fixed with glibc-2.12-2 , see Bug 593762

Comment 2 Andreas Schwab 2011-03-14 09:54:52 UTC

*** This bug has been marked as a duplicate of bug 652661 ***