[Bug c++/87989] [8/9 Regression] Calling operator T() invokes wrong conversion operator overload

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 14 19:35:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87989

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2018-11-14
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |nathan at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
This used to call X::operator float() const until r255605 when it started to
ICE.
The ICE got fixed with r256986, but starting with that revision it already
calls X::operator float<float>() const.


More information about the Gcc-bugs mailing list