[LLVMbugs] [Bug 4470] New: format printf and format_arg attributes don't work together

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Jun 27 11:02:36 PDT 2009


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

           Summary: format printf and format_arg attributes don't work
                    together
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: tss at iki.fi
                CC: llvmbugs at cs.uiuc.edu


This code shouldn't give a warning (bug 4442 fixed this partially):

const char *foo(const char *format) __attribute__((format_arg(1)));

void __attribute__((format(printf, 1, 0)))
foo2(const char *fmt, va_list va)
{
        vprintf(foo(fmt), va);
}


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