| | |
| --- | --- |
| Bugzilla Link | [45372](https://llvm.org/bz45372) |
| Version | trunk |
| OS | Linux |
| Reporter | LLVM Bugzilla Contributor |
| CC | @DougGregor,@zygoloid |
## Extended Description
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.
Extended Description
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.