c++: Empty args for variadic concept [PR98717]
authorJason Merrill <jason@redhat.com>
Thu, 4 Feb 2021 16:46:45 +0000 (11:46 -0500)
committerJason Merrill <jason@redhat.com>
Thu, 4 Feb 2021 20:43:43 +0000 (15:43 -0500)
commit4e7c24d97dd65083a770252ce942f43d408fe11d
tree6eec6b1df9b734a631d690668b737f2452f6949d
parent65c1cb358999e9d1618834af341b31837ede839e
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.
gcc/cp/constraint.cc
gcc/testsuite/g++.dg/cpp2a/concepts-variadic3.C [new file with mode: 0644]