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: unassignedclangb...@nondot.org
Reporter: marcel.k...@uni-muenster.de
CC: blitzrak...@gmail.com, dgre...@apple.com,
erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs