[llvm-bugs] [Bug 27934] New: cannot find overload for unary expression

via llvm-bugs llvm-bugs at lists.llvm.org
Mon May 30 02:20:04 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=27934

            Bug ID: 27934
           Summary: cannot find overload for unary expression
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: noelgrandin at gmail.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 16433
  --> https://llvm.org/bugs/attachment.cgi?id=16433&action=edit
self-contained test case

See attached test-case.

This is a stripped down copy of a utility library from LibreOffice codebase.

code was compiled with:

clang++  -std=c++11 testcase.cxx

and generates error:

typed_flags_testcase.cxx:253:48: error: invalid argument type 'typename
o3tl::typed_flags<ComplexTextLayoutFlags>::Wrap' to unary expression
    ComplexTextLayoutFlags n1(nOldLayoutMode &
~(ComplexTextLayoutFlags::ComplexDisabled|ComplexTextLayoutFlags::BiDiStrong));
                                              
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160530/7cd2a3eb/attachment.html>


More information about the llvm-bugs mailing list