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

            Bug ID: 27914
           Summary: const conversion operator compilation error on
                    assignment
           Product: clang
           Version: 3.8
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to