This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/21551] New: argp.h before error.h using std=c99 causes compile error on __builtin_va_arg_pack


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

            Bug ID: 21551
           Summary: argp.h before error.h  using std=c99 causes compile
                    error on __builtin_va_arg_pack
           Product: glibc
           Version: 2.17
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: matt.stclair at gmail dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

Including argp.h before error.h in my source causes the following errors when
compiling using gcc 4.8.5 with the -std=c99 (or -std=c11) option:

/usr/include/bits/error.h: In function ‘error’:
/usr/include/bits/error.h:42:19: error: invalid use of ‘__builtin_va_arg_pack
()’
     __error_alias (__status, __errnum, __format, __va_arg_pack ());
                   ^
/usr/include/bits/error.h: In function ‘error_at_line’:
/usr/include/bits/error.h:71:27: error: invalid use of ‘__builtin_va_arg_pack
()’
     __error_at_line_alias (__status, __errnum, __fname, __line,


This occurs even with no additional code, so it can be tested with just the
following two lines of code:

#include <argp.h>
#include <error.h>

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]