On Mon, Dec 13, 2021 at 04:28:26PM -0500, Patrick Palka via Gcc-patches wrote:
>       * g++.dg/concepts/diagnostic18.C: Expect a "constraints on a
>       non-templated function" error.
>       * g++.dg/cpp23/auto-fncast10.C: New test.

This test fails:
+FAIL: g++.dg/cpp23/auto-fncast11.C  -std=c++2b  (test for errors, line 19)
+FAIL: g++.dg/cpp23/auto-fncast11.C  -std=c++2b (test for excess errors)
because the regex in dg-error was missing an indefinite article.

Tested with
GXX_TESTSUITE_STDS=98,11,14,17,20,2b make check-g++ 
RUNTESTFLAGS="dg.exp=auto-fncast11.C"
and committed to trunk as obvious:

2021-12-15  Jakub Jelinek  <ja...@redhat.com>

        PR c++/103408
        * g++.dg/cpp23/auto-fncast11.C: Fix expected diagnostic wording.

--- gcc/testsuite/g++.dg/cpp23/auto-fncast11.C.jj       2021-12-14 
18:40:21.399133909 +0100
+++ gcc/testsuite/g++.dg/cpp23/auto-fncast11.C  2021-12-15 11:16:36.401592355 
+0100
@@ -16,4 +16,4 @@ static_assert(requires { requires auto(a
 static_assert(!requires { requires auto(false); });
 static_assert(!requires { requires auto(auto(false)); });
 
-auto f() requires (auto(false)); // { dg-error "constraints on non-templated" }
+auto f() requires (auto(false)); // { dg-error "constraints on a 
non-templated" }


        Jakub

Reply via email to