[LLVMbugs] [Bug 2248] New: Clang cannot compile its preprocessed output with same flags

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Apr 22 05:22:36 PDT 2008


http://llvm.org/bugs/show_bug.cgi?id=2248

           Summary: Clang cannot compile its preprocessed output with same
                    flags
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: NetBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: neil at daikokuya.co.uk
                CC: llvmbugs at cs.uiuc.edu


For the following file:

#include <stdarg.h>
void d (int tag, ...)
{
  va_list ap;

  va_start (ap, tag);
  va_end (ap);
}

we get the following effect:

$ clang -pedantic-errors -E /tmp/bug.c > /tmp/bug.i
$ clang -pedantic-errors /tmp/bug.i
/tmp/bug.i:60:3: error: implicit declaration of function
'__builtin_stdarg_start' is invalid in C99
  __builtin_stdarg_start((ap), (tag));
  ^
1 diagnostic generated.
$


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list