public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/81139] Non-deduced return type in abbreviated function template [not found] <bug-81139-4@http.gcc.gnu.org/bugzilla/> @ 2021-08-13 8:52 ` pinskia at gcc dot gnu.org 0 siblings, 0 replies; only message in thread From: pinskia at gcc dot gnu.org @ 2021-08-13 8:52 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81139 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Is this true? With the following updated C++20 testcase, clang, GCC and MSVC all cause the static_assert to pass: #include <type_traits> template<typename T> concept C = true; C auto f(C auto) { return 0; } void g() { auto x = f("x"); static_assert(std::is_same<decltype(x), int>::value); } ^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-13 8:52 UTC | newest] Thread overview: (only message) (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-81139-4@http.gcc.gnu.org/bugzilla/> 2021-08-13 8:52 ` [Bug c++/81139] Non-deduced return type in abbreviated function template pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).