public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/93083] copy deduction rejected when doing CTAD for NTTP
       [not found] <bug-93083-4@http.gcc.gnu.org/bugzilla/>
@ 2020-05-20 22:39 ` hanicka at hanicka dot net
  2020-10-13 19:28 ` mpolacek at gcc dot gnu.org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: hanicka at hanicka dot net @ 2020-05-20 22:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Hana Dusíková <hanicka at hanicka dot net> ---
Same error is also triggered by template partial specialization:

```
template <int N> struct literal {
        constexpr literal(const char (&input)[N]) noexcept { }
        constexpr literal(const literal &) noexcept { }
};

template <literal Name, int id> struct field { };

template <literal Name> struct field<Name, 1u> { };
```

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

* [Bug c++/93083] copy deduction rejected when doing CTAD for NTTP
       [not found] <bug-93083-4@http.gcc.gnu.org/bugzilla/>
  2020-05-20 22:39 ` [Bug c++/93083] copy deduction rejected when doing CTAD for NTTP hanicka at hanicka dot net
@ 2020-10-13 19:28 ` mpolacek at gcc dot gnu.org
  2020-11-17 19:29 ` mpolacek at gcc dot gnu.org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-10-13 19:28 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.

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

* [Bug c++/93083] copy deduction rejected when doing CTAD for NTTP
       [not found] <bug-93083-4@http.gcc.gnu.org/bugzilla/>
  2020-05-20 22:39 ` [Bug c++/93083] copy deduction rejected when doing CTAD for NTTP hanicka at hanicka dot net
  2020-10-13 19:28 ` mpolacek at gcc dot gnu.org
@ 2020-11-17 19:29 ` mpolacek at gcc dot gnu.org
  2020-11-17 19:30 ` mpolacek at gcc dot gnu.org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-11-17 19:29 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |janpmoeller at gmx dot de

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
*** Bug 97751 has been marked as a duplicate of this bug. ***

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

* [Bug c++/93083] copy deduction rejected when doing CTAD for NTTP
       [not found] <bug-93083-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2020-11-17 19:29 ` mpolacek at gcc dot gnu.org
@ 2020-11-17 19:30 ` mpolacek at gcc dot gnu.org
  2020-11-25 21:43 ` [Bug c++/93083] [C++20] " jason at gcc dot gnu.org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-11-17 19:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Short test from Bug 97751:

template <int N>
struct use_as_nttp {};

template <use_as_nttp Value>
struct has_nttp {};

template <use_as_nttp Value>
using has_nttp_2 = has_nttp<Value>;

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

* [Bug c++/93083] [C++20] copy deduction rejected when doing CTAD for NTTP
       [not found] <bug-93083-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2020-11-17 19:30 ` mpolacek at gcc dot gnu.org
@ 2020-11-25 21:43 ` jason at gcc dot gnu.org
  2020-12-04 22:50 ` cvs-commit at gcc dot gnu.org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu.org @ 2020-11-25 21:43 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org
             Status|NEW                         |ASSIGNED

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

* [Bug c++/93083] [C++20] copy deduction rejected when doing CTAD for NTTP
       [not found] <bug-93083-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2020-11-25 21:43 ` [Bug c++/93083] [C++20] " jason at gcc dot gnu.org
@ 2020-12-04 22:50 ` cvs-commit at gcc dot gnu.org
  2020-12-09 18:09 ` cvs-commit at gcc dot gnu.org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-12-04 22:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:

https://gcc.gnu.org/g:a95753214b55d21e5b44eeb098cccf88d44c94dd

commit r11-5752-ga95753214b55d21e5b44eeb098cccf88d44c94dd
Author: Jason Merrill <jason@redhat.com>
Date:   Wed Nov 25 17:05:24 2020 -0500

    c++: Fix deduction from auto template parameter [PR93083]

    The check in do_class_deduction to handle passing one class placeholder
    template parm as an argument for itself needed to be extended to also
handle
    equivalent parms from other templates.

    gcc/cp/ChangeLog:

            PR c++/93083
            * pt.c (convert_template_argument): Handle equivalent placeholders.
            (do_class_deduction): Look through EXPR_PACK_EXPANSION, too.

    gcc/testsuite/ChangeLog:

            PR c++/93083
            * g++.dg/cpp2a/nontype-class40.C: New test.

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

* [Bug c++/93083] [C++20] copy deduction rejected when doing CTAD for NTTP
       [not found] <bug-93083-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2020-12-04 22:50 ` cvs-commit at gcc dot gnu.org
@ 2020-12-09 18:09 ` cvs-commit at gcc dot gnu.org
  2020-12-09 18:13 ` jason at gcc dot gnu.org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-12-09 18:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:

https://gcc.gnu.org/g:e6e42891d80c12c4fac36d6273b8d4e31a3d0a2a

commit r10-9133-ge6e42891d80c12c4fac36d6273b8d4e31a3d0a2a
Author: Jason Merrill <jason@redhat.com>
Date:   Wed Nov 25 17:05:24 2020 -0500

    c++: Fix deduction from auto template parameter [PR93083]

    The check in do_class_deduction to handle passing one class placeholder
    template parm as an argument for itself needed to be extended to also
handle
    equivalent parms from other templates.

    gcc/cp/ChangeLog:

            PR c++/93083
            * pt.c (convert_template_argument): Handle equivalent placeholders.
            (do_class_deduction): Look through EXPR_PACK_EXPANSION, too.

    gcc/testsuite/ChangeLog:

            PR c++/93083
            * g++.dg/cpp2a/nontype-class40.C: New test.

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

* [Bug c++/93083] [C++20] copy deduction rejected when doing CTAD for NTTP
       [not found] <bug-93083-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2020-12-09 18:09 ` cvs-commit at gcc dot gnu.org
@ 2020-12-09 18:13 ` jason at gcc dot gnu.org
  2021-04-22 19:41 ` ppalka at gcc dot gnu.org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu.org @ 2020-12-09 18:13 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |10.3

--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 10.2/11.

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

* [Bug c++/93083] [C++20] copy deduction rejected when doing CTAD for NTTP
       [not found] <bug-93083-4@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2020-12-09 18:13 ` jason at gcc dot gnu.org
@ 2021-04-22 19:41 ` ppalka at gcc dot gnu.org
  2022-03-09 17:10 ` ppalka at gcc dot gnu.org
  2023-11-10 16:21 ` ppalka at gcc dot gnu.org
  10 siblings, 0 replies; 11+ messages in thread
From: ppalka at gcc dot gnu.org @ 2021-04-22 19:41 UTC (permalink / raw)
  To: gcc-bugs

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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mateusz.pusz at gmail dot com

--- Comment #9 from Patrick Palka <ppalka at gcc dot gnu.org> ---
*** Bug 95015 has been marked as a duplicate of this bug. ***

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

* [Bug c++/93083] [C++20] copy deduction rejected when doing CTAD for NTTP
       [not found] <bug-93083-4@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2021-04-22 19:41 ` ppalka at gcc dot gnu.org
@ 2022-03-09 17:10 ` ppalka at gcc dot gnu.org
  2023-11-10 16:21 ` ppalka at gcc dot gnu.org
  10 siblings, 0 replies; 11+ messages in thread
From: ppalka at gcc dot gnu.org @ 2022-03-09 17:10 UTC (permalink / raw)
  To: gcc-bugs

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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nicole.king464 at gmail dot com

--- Comment #10 from Patrick Palka <ppalka at gcc dot gnu.org> ---
*** Bug 96331 has been marked as a duplicate of this bug. ***

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

* [Bug c++/93083] [C++20] copy deduction rejected when doing CTAD for NTTP
       [not found] <bug-93083-4@http.gcc.gnu.org/bugzilla/>
                   ` (9 preceding siblings ...)
  2022-03-09 17:10 ` ppalka at gcc dot gnu.org
@ 2023-11-10 16:21 ` ppalka at gcc dot gnu.org
  10 siblings, 0 replies; 11+ messages in thread
From: ppalka at gcc dot gnu.org @ 2023-11-10 16:21 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Patrick Palka <ppalka at gcc dot gnu.org> ---
*** Bug 92101 has been marked as a duplicate of this bug. ***

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

end of thread, other threads:[~2023-11-10 16:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-93083-4@http.gcc.gnu.org/bugzilla/>
2020-05-20 22:39 ` [Bug c++/93083] copy deduction rejected when doing CTAD for NTTP hanicka at hanicka dot net
2020-10-13 19:28 ` mpolacek at gcc dot gnu.org
2020-11-17 19:29 ` mpolacek at gcc dot gnu.org
2020-11-17 19:30 ` mpolacek at gcc dot gnu.org
2020-11-25 21:43 ` [Bug c++/93083] [C++20] " jason at gcc dot gnu.org
2020-12-04 22:50 ` cvs-commit at gcc dot gnu.org
2020-12-09 18:09 ` cvs-commit at gcc dot gnu.org
2020-12-09 18:13 ` jason at gcc dot gnu.org
2021-04-22 19:41 ` ppalka at gcc dot gnu.org
2022-03-09 17:10 ` ppalka at gcc dot gnu.org
2023-11-10 16:21 ` ppalka 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).