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

            Bug ID: 18810
           Summary: Clang misinterprets initialization
           Product: clang
           Version: 3.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

Created attachment 12049
  --> http://llvm.org/bugs/attachment.cgi?id=12049&action=edit
Testcase

The attached test case can't be compiled by clang but passes without any
hassles in g++ and the Oracle/Sunstudio C++ compiler.

The primary error message is:
foo.C:37:34: error: parameter declarator cannot be qualified
  QCursor waitCursor(QCursor(Qt::WaitCursor));

The attached test case is a common Qt usage in our tools. I have removed
everything and only left the needed declarations.

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