C++20 NB CA378 - Remove constrained non-template functions.
authorJason Merrill <jason@redhat.com>
Wed, 6 Nov 2019 20:20:00 +0000 (15:20 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 6 Nov 2019 20:20:00 +0000 (15:20 -0500)
commitbabd71c168ad447d2d11886683dea263ba1d814d
tree890e5bf75cb35d71ba7b7d79a17c57c0156edc10
parent5d24b4f2dad8883db004481ebd633a0bf8d4f8e9
C++20 NB CA378 - Remove constrained non-template functions.

No real use cases have ever arisen for constraints on non-templated
functions, and handling of them has never been entirely clear, so the
committee agreed to accept this national body comment proposing that we
remove them.

* decl.c (grokfndecl): Reject constraints on non-templated function.

From-SVN: r277891
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/g++.dg/cpp2a/concepts-friend4.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp2a/concepts-lambda2.C
gcc/testsuite/g++.dg/cpp2a/concepts-lambda3.C
gcc/testsuite/g++.dg/cpp2a/concepts-requires1.C