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

             Bug #: 11806
           Summary: pretty-printing produces wrong cast in initialization
                    code when many variables are defined in one statement
           Product: clang
           Version: 3.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


Running "clang -cc1 -ast-print file.cpp" on following source:

struct S;
void fun(const void *a, const void *b)
{
   struct S* A = (struct S*)a, *B = (struct S*)b;
}

Produces following code that does not compile:

struct S;
void fun(const void *a, const void *b) {
    struct S *A = (struct S *)a, *B = (*)b;
}

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