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

           Summary: Error initializing va_list with another variable.
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: parser
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [email protected]


In a function:

void do_stuff(va_list arglist)
{
        va_list temp_args= arglist;
        ....
}

clang gives an error:

error: initialization with "{...}" expected for array
        va_list temp_args= arglist;

GCC and VC7 compile the code fine.


-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to