[llvm-bugs] [Bug 27914] New: const conversion operator compilation error on assignment

via llvm-bugs llvm-bugs at lists.llvm.org
Fri May 27 09:55:43 PDT 2016


            Bug ID: 27914
           Summary: const conversion operator compilation error on
           Product: clang
           Version: 3.8
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: akotulski at fb.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 16429
  --> https://llvm.org/bugs/attachment.cgi?id=16429&action=edit
code that fails to compile with clang

Clang fails to compile on assignment when there is implicit cast and 'const T
operator' doing the conversion. Small example attached

It compiles with g++ (all modes) and with clang in pre-c++11 modes.
Is this intended behavior of clang?

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/20160527/e375af3a/attachment.html>

More information about the llvm-bugs mailing list