public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/83181] [C++17] Invalid deduction guide accepted
       [not found] <bug-83181-4@http.gcc.gnu.org/bugzilla/>
@ 2020-09-16 19:57 ` mpolacek at gcc dot gnu.org
  2023-12-29 20:52 ` eddiejnolan at gmail dot com
  1 sibling, 0 replies; 2+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-09-16 19:57 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2020-09-16
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Still accepted.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/83181] [C++17] Invalid deduction guide accepted
       [not found] <bug-83181-4@http.gcc.gnu.org/bugzilla/>
  2020-09-16 19:57 ` [Bug c++/83181] [C++17] Invalid deduction guide accepted mpolacek at gcc dot gnu.org
@ 2023-12-29 20:52 ` eddiejnolan at gmail dot com
  1 sibling, 0 replies; 2+ messages in thread
From: eddiejnolan at gmail dot com @ 2023-12-29 20:52 UTC (permalink / raw)
  To: gcc-bugs

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

Eddie Nolan <eddiejnolan at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eddiejnolan at gmail dot com

--- Comment #3 from Eddie Nolan <eddiejnolan at gmail dot com> ---
Here's another example:

template <typename T, typename U>
struct foo {};

template<typename T, typename U>
foo(T&&) -> foo<T, U>;

Clang says:

<source>:5:1: error: deduction guide template contains a template parameter
that cannot be deduced
    5 | foo(T&&) -> foo<T, U>;
      | ^
<source>:4:31: note: non-deducible template parameter 'U'
    4 | template<typename T, typename U>
      |                               ^

But GCC accepts it.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-12-29 20:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-83181-4@http.gcc.gnu.org/bugzilla/>
2020-09-16 19:57 ` [Bug c++/83181] [C++17] Invalid deduction guide accepted mpolacek at gcc dot gnu.org
2023-12-29 20:52 ` eddiejnolan at gmail dot com

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).