Bug 173494

Summary: /usr/include/sys/stat.h:239: error: expected initializer before 'throw'
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.3.90-17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-11-17 16:43:00 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 Orion Poplawski 2005-11-17 16:20:53 UTC
Description of problem:
On current rawhide, the following code "test.cpp":

#include <sys/stat.h>

when compiled with the following give the error:

# g++  -D_FILE_OFFSET_BITS=64  -c test.cpp
/usr/include/sys/stat.h:239: error: expected initializer before 'throw'

Without -D_FILE_OFFSET_BITS=64 no complaints.

Version-Release number of selected component (if applicable):
glibc-headers-2.3.90-16

Diff (- = without -D_FILE_OFFSET_BITS=64, + = with) :

-extern int fstatat (int __fd, const char *__file, struct stat *__buf,
-      int __flag) throw () __attribute__ ((__nonnull__ (2, 3)));
-
-
+extern int stat64 (__const char *__restrict __file,
+     struct stat64 *__restrict __buf) throw () __attribute__ ((__nonnull__ (1,
2)));
+extern int fstat64 (int __fd, struct stat64 *__buf) throw () __attribute__
((__nonnull__
 (2)));
+# 239 "/usr/include/sys/stat.h" 3 4
+extern int fstatat (int __fd, const char *__file, struct stat *__buf, int
__flag) throw
() __asm__ ("" "fstatat64") throw () __attribute__ ((__nonnull__ (2, 3)));