[Bug stdio/18907] New: Incorrect order of __wur __THROW in <printf.h>

jwakely.gcc at gmail dot com sourceware-bugzilla@sourceware.org
Tue Sep 1 15:59:00 GMT 2015


https://sourceware.org/bugzilla/show_bug.cgi?id=18907

            Bug ID: 18907
           Summary: Incorrect order of __wur __THROW in <printf.h>
           Product: glibc
           Version: 2.22
            Status: NEW
          Severity: normal
          Priority: P2
         Component: stdio
          Assignee: unassigned at sourceware dot org
          Reporter: jwakely.gcc at gmail dot com
  Target Milestone: ---

Created attachment 8570
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8570&action=edit
Re-order __wur and __THROW macros.

gcc -O1 -D_FORTIFY_SOURCE -c -x c++ - <<< '#include <printf.h>'


In file included from /usr/include/features.h:365:0,
                 from /usr/include/printf.h:21,
                 from <stdin>:1:
/usr/include/printf.h:114:66: error: expected initializer before ‘throw’
 extern int register_printf_modifier (const wchar_t *__str) __wur __THROW;
                                                                  ^
/usr/include/printf.h:120:70: error: expected initializer before ‘throw’
 extern int register_printf_type (printf_va_arg_function __fct) __wur __THROW;
                                                                      ^

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list