Re: Re: [PATCH v2] c++: Check invalid use of constrained auto with trailing return type [PR100589]

2025-03-05 Thread Da Xie
* Patrick Palka [2025-03-05 11:15:06]: > On Tue, 4 Mar 2025, Patrick Palka wrote: > > > On Sun, 2 Mar 2025, Da Xie wrote: > > > > > Add check for constrained auto type specifier in function declaration or > > > function type declaration with trail

[PATCH v2] c++: Check invalid use of constrained auto with trailing return type [PR100589]

2025-03-01 Thread Da Xie
: * g++.dg/cpp2a/concepts-pr100589.C: New test. Signed-off-by: Da Xie --- gcc/cp/decl.cc | 13 + gcc/testsuite/g++.dg/cpp2a/concepts-pr100589.C | 9 + 2 files changed, 22 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp2a/concepts

[PATCH] c++: Check invalid use of constrained auto with trailing return type [PR100589]

2025-02-28 Thread Da Xie
with constrained auto type specifier and trailing return types. gcc/testsuite/ChangeLog: * g++.dg/other/pr100589.C: New test. Signed-off-by: Da Xie --- gcc/cp/decl.cc| 7 +++ gcc/testsuite/g++.dg/other/pr100589.C | 7 +++ 2 files changed, 14