[LLVMbugs] [Bug 11059] New: Warn for use of array types with va_arg

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Oct 4 13:34:02 PDT 2011


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

           Summary: Warn for use of array types with va_arg
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: joerg at NetBSD.org
                CC: llvmbugs at cs.uiuc.edu


Using arrays with va_arg seems to be undefined behavior. It would be useful if
clang actually warned about that, possibly even error by default.

See http://gnats.netbsd.org/45138 for a longer discussion and test cases.

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