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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to 康桓瑋 from comment #0)
> #include <type_traits>
> #include <string>
> struct S { operator const char*() const; };
> static_assert(std::is_constructible_v<const std::string&, S>);
> 
> GCC accepts the above.

Well in C++17 GCC does reject the above which makes the case of being a dup of
bug 114395 even stronger.

Reply via email to