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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs