[llvm-bugs] [Bug 45372] New: Cannot Find Conversion Operator

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 31 05:28:10 PDT 2020


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

            Bug ID: 45372
           Summary: Cannot Find Conversion Operator
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: marcel.koch at uni-muenster.de
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

In the following MWE https://godbolt.org/z/F3gHe2 clang states that the
conversion operator to int does not exist.

clang only complains about function f, while explicitly calling the operator
does not result in an error.

Additionally gcc and msvc accept this code.

This behaviour is present in the versions 6 to trunk.

-- 
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/20200331/6ac95efd/attachment-0001.html>


More information about the llvm-bugs mailing list