[LLVMbugs] [Bug 11336] New: vargs macro dererencing a incomplete structure

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Nov 8 08:03:20 PST 2011


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

             Bug #: 11336
           Summary: vargs macro dererencing a incomplete structure
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: etienne.bergeron at octasic.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


The 'online-demo' compiler crash with this code:

#include <stdarg.h>

struct S;
void deref_incomplete(int a, ...)
{
  va_list ap;
  int i;

  va_start(ap, a); 
  va_arg(ap, struct S);  
  va_end(ap);
}


clang: error: unable to execute command: Segmentation fault

-- 
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