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

             Bug #: 11800
           Summary: pretty-printing produces wrong argument list for
                    constructor of template argument class
           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:

template <class S> void fun()
{
    S s(1,2);
}

Produces following wrong body for fun:

template <class S> void fun()
{
    S s(( 1,2 ));
}

Printed code works differently - instead of passing two arguments to S
constructor, it passes one argument and uses "," as comma operator.

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