public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/98717] New: [c++20] variadic concept can't take empty pack
@ 2021-01-18  0:14 ryan_greenblatt at brown dot edu
  2021-01-19  1:57 ` [Bug c++/98717] [10/11 Regression] " ppalka at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ryan_greenblatt at brown dot edu @ 2021-01-18  0:14 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98717
           Summary: [c++20] variadic concept can't take empty pack
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ryan_greenblatt at brown dot edu
  Target Milestone: ---

```
template<typename... T>
concept True = true;

static_assert(True<>);
```
"error: invalid use concept ‘True<>’"

https://godbolt.org/z/ndfjzj

I'm suprised this hasn't been caught already... (assuming there isn't a
duplicate bug report I missed)

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

* [Bug c++/98717] [10/11 Regression] [c++20] variadic concept can't take empty pack
  2021-01-18  0:14 [Bug c++/98717] New: [c++20] variadic concept can't take empty pack ryan_greenblatt at brown dot edu
@ 2021-01-19  1:57 ` ppalka at gcc dot gnu.org
  2021-02-04 16:43 ` jason at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ppalka at gcc dot gnu.org @ 2021-01-19  1:57 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[c++20] variadic concept    |[10/11 Regression] [c++20]
                   |can't take empty pack       |variadic concept can't take
                   |                            |empty pack
                 CC|                            |ppalka at gcc dot gnu.org
   Last reconfirmed|                            |2021-01-19
   Target Milestone|---                         |10.3
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
      Known to fail|                            |10.2.0, 11.0
      Known to work|                            |9.3.0

--- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Confirmed.  We went from accepting to rejecting this testcase after r276764,
aka the C++20 concepts merge.

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

* [Bug c++/98717] [10/11 Regression] [c++20] variadic concept can't take empty pack
  2021-01-18  0:14 [Bug c++/98717] New: [c++20] variadic concept can't take empty pack ryan_greenblatt at brown dot edu
  2021-01-19  1:57 ` [Bug c++/98717] [10/11 Regression] " ppalka at gcc dot gnu.org
@ 2021-02-04 16:43 ` jason at gcc dot gnu.org
  2021-02-04 20:43 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2021-02-04 16:43 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

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

* [Bug c++/98717] [10/11 Regression] [c++20] variadic concept can't take empty pack
  2021-01-18  0:14 [Bug c++/98717] New: [c++20] variadic concept can't take empty pack ryan_greenblatt at brown dot edu
  2021-01-19  1:57 ` [Bug c++/98717] [10/11 Regression] " ppalka at gcc dot gnu.org
  2021-02-04 16:43 ` jason at gcc dot gnu.org
@ 2021-02-04 20:43 ` cvs-commit at gcc dot gnu.org
  2021-02-05  1:02 ` [Bug c++/98717] [10 " cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-02-04 20:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 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:4e7c24d97dd65083a770252ce942f43d408fe11d

commit r11-7106-g4e7c24d97dd65083a770252ce942f43d408fe11d
Author: Jason Merrill <jason@redhat.com>
Date:   Thu Feb 4 11:46:45 2021 -0500

    c++: Empty args for variadic concept [PR98717]

    Nice when fixing a bug is as easy as removing incorrect checks.

    gcc/cp/ChangeLog:

            PR c++/98717
            * constraint.cc (build_concept_check_arguments): Remove assert.
            (build_concept_check): Allow empty args.

    gcc/testsuite/ChangeLog:

            PR c++/98717
            * g++.dg/cpp2a/concepts-variadic3.C: New test.

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

* [Bug c++/98717] [10 Regression] [c++20] variadic concept can't take empty pack
  2021-01-18  0:14 [Bug c++/98717] New: [c++20] variadic concept can't take empty pack ryan_greenblatt at brown dot edu
                   ` (2 preceding siblings ...)
  2021-02-04 20:43 ` cvs-commit at gcc dot gnu.org
@ 2021-02-05  1:02 ` cvs-commit at gcc dot gnu.org
  2021-04-08 12:02 ` rguenth at gcc dot gnu.org
  2022-05-12 21:03 ` jason at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-02-05  1:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 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:eb15f761bc741599504d532ef9c1c03a8de71820

commit r10-9348-geb15f761bc741599504d532ef9c1c03a8de71820
Author: Jason Merrill <jason@redhat.com>
Date:   Thu Feb 4 11:46:45 2021 -0500

    c++: Empty args for variadic concept [PR98717]

    Nice when fixing a bug is as easy as removing incorrect checks.

    gcc/cp/ChangeLog:

            PR c++/98717
            * constraint.cc (build_concept_check_arguments): Remove assert.
            (build_concept_check): Allow empty args.

    gcc/testsuite/ChangeLog:

            PR c++/98717
            * g++.dg/cpp2a/concepts-variadic3.C: New test.

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

* [Bug c++/98717] [10 Regression] [c++20] variadic concept can't take empty pack
  2021-01-18  0:14 [Bug c++/98717] New: [c++20] variadic concept can't take empty pack ryan_greenblatt at brown dot edu
                   ` (3 preceding siblings ...)
  2021-02-05  1:02 ` [Bug c++/98717] [10 " cvs-commit at gcc dot gnu.org
@ 2021-04-08 12:02 ` rguenth at gcc dot gnu.org
  2022-05-12 21:03 ` jason at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-04-08 12:02 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.3                        |10.4

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10.3 is being released, retargeting bugs to GCC 10.4.

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

* [Bug c++/98717] [10 Regression] [c++20] variadic concept can't take empty pack
  2021-01-18  0:14 [Bug c++/98717] New: [c++20] variadic concept can't take empty pack ryan_greenblatt at brown dot edu
                   ` (4 preceding siblings ...)
  2021-04-08 12:02 ` rguenth at gcc dot gnu.org
@ 2022-05-12 21:03 ` jason at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2022-05-12 21:03 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed in 10.3.

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

end of thread, other threads:[~2022-05-12 21:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-18  0:14 [Bug c++/98717] New: [c++20] variadic concept can't take empty pack ryan_greenblatt at brown dot edu
2021-01-19  1:57 ` [Bug c++/98717] [10/11 Regression] " ppalka at gcc dot gnu.org
2021-02-04 16:43 ` jason at gcc dot gnu.org
2021-02-04 20:43 ` cvs-commit at gcc dot gnu.org
2021-02-05  1:02 ` [Bug c++/98717] [10 " cvs-commit at gcc dot gnu.org
2021-04-08 12:02 ` rguenth at gcc dot gnu.org
2022-05-12 21:03 ` jason 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).