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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The code is invalid, it only works with older versions of GCC and Clang because
you never instantiate the function template and so the bug isn't detected.
Obviously if you try to use the function then it won't compile, because there's
no conversion. Why do you expect it to compile?

See https://gcc.gnu.org/gcc-7/porting_to.html#hypothetical-instantiation

Reply via email to