public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Thomas Schwinge <tschwinge@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-5967] Fix 'g++.dg/cpp26/static_assert1.C' for '-fno-exceptions' configurations Date: Wed, 29 Nov 2023 13:13:17 +0000 (GMT) [thread overview] Message-ID: <20231129131317.9CF813883006@sourceware.org> (raw) https://gcc.gnu.org/g:58baac57d6f3c0f723c1fd6ae338752e73e42934 commit r14-5967-g58baac57d6f3c0f723c1fd6ae338752e73e42934 Author: Thomas Schwinge <thomas@codesourcery.com> Date: Tue Nov 28 17:52:34 2023 +0100 Fix 'g++.dg/cpp26/static_assert1.C' for '-fno-exceptions' configurations This test case, added in recent commit 6ce952188ab39e303e4f63e474b5cba83b5b12fd "c++: Implement C++26 P2741R3 - user-generated static_assert messages [PR110348]", expectedly runs into 'UNSUPPORTED: [...]: exception handling disabled', but along the way also FAILs a few tests: UNSUPPORTED: g++.dg/cpp26/static_assert1.C -std=gnu++98 PASS: g++.dg/cpp26/static_assert1.C -std=gnu++11 (test for warnings, line 6) [...] PASS: g++.dg/cpp26/static_assert1.C -std=gnu++11 (test for warnings, line 51) FAIL: g++.dg/cpp26/static_assert1.C -std=gnu++11 (test for errors, line 52) PASS: g++.dg/cpp26/static_assert1.C -std=gnu++11 (test for warnings, line 56) PASS: g++.dg/cpp26/static_assert1.C -std=gnu++11 (test for warnings, line 57) FAIL: g++.dg/cpp26/static_assert1.C -std=gnu++11 at line 58 (test for errors, line 57) PASS: g++.dg/cpp26/static_assert1.C -std=gnu++11 (test for warnings, line 59) [...] PASS: g++.dg/cpp26/static_assert1.C -std=gnu++11 at line 308 (test for errors, line 307) UNSUPPORTED: g++.dg/cpp26/static_assert1.C -std=gnu++11: exception handling disabled PASS: g++.dg/cpp26/static_assert1.C -std=gnu++14 (test for warnings, line 6) [...] PASS: g++.dg/cpp26/static_assert1.C -std=gnu++14 (test for warnings, line 51) FAIL: g++.dg/cpp26/static_assert1.C -std=gnu++14 (test for errors, line 52) PASS: g++.dg/cpp26/static_assert1.C -std=gnu++14 (test for warnings, line 56) PASS: g++.dg/cpp26/static_assert1.C -std=gnu++14 (test for warnings, line 57) FAIL: g++.dg/cpp26/static_assert1.C -std=gnu++14 at line 58 (test for errors, line 57) PASS: g++.dg/cpp26/static_assert1.C -std=gnu++14 (test for warnings, line 59) [...] PASS: g++.dg/cpp26/static_assert1.C -std=gnu++14 at line 257 (test for errors, line 256) FAIL: g++.dg/cpp26/static_assert1.C -std=gnu++14 (test for errors, line 261) PASS: g++.dg/cpp26/static_assert1.C -std=gnu++14 (test for warnings, line 262) [...] PASS: g++.dg/cpp26/static_assert1.C -std=gnu++14 at line 308 (test for errors, line 307) UNSUPPORTED: g++.dg/cpp26/static_assert1.C -std=gnu++14: exception handling disabled PASS: g++.dg/cpp26/static_assert1.C -std=gnu++20 (test for warnings, line 6) [...] PASS: g++.dg/cpp26/static_assert1.C -std=gnu++20 (test for warnings, line 51) FAIL: g++.dg/cpp26/static_assert1.C -std=gnu++20 (test for errors, line 52) PASS: g++.dg/cpp26/static_assert1.C -std=gnu++20 (test for warnings, line 56) PASS: g++.dg/cpp26/static_assert1.C -std=gnu++20 (test for warnings, line 57) FAIL: g++.dg/cpp26/static_assert1.C -std=gnu++20 at line 58 (test for errors, line 57) PASS: g++.dg/cpp26/static_assert1.C -std=gnu++20 (test for warnings, line 59) [...] PASS: g++.dg/cpp26/static_assert1.C -std=gnu++20 at line 257 (test for errors, line 256) FAIL: g++.dg/cpp26/static_assert1.C -std=gnu++20 (test for errors, line 261) PASS: g++.dg/cpp26/static_assert1.C -std=gnu++20 (test for warnings, line 262) [...] PASS: g++.dg/cpp26/static_assert1.C -std=gnu++20 at line 308 (test for errors, line 307) UNSUPPORTED: g++.dg/cpp26/static_assert1.C -std=gnu++20: exception handling disabled Use an explicit '-fexceptions' to turn this front end test case all-PASS. gcc/testsuite/ * g++.dg/cpp26/static_assert1.C: Fix for '-fno-exceptions' configurations. Diff: --- gcc/testsuite/g++.dg/cpp26/static_assert1.C | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/testsuite/g++.dg/cpp26/static_assert1.C b/gcc/testsuite/g++.dg/cpp26/static_assert1.C index 9dec52b90d6..59724ae32ce 100644 --- a/gcc/testsuite/g++.dg/cpp26/static_assert1.C +++ b/gcc/testsuite/g++.dg/cpp26/static_assert1.C @@ -1,6 +1,8 @@ // C++26 P2741R3 - user-generated static_assert messages // { dg-do compile { target c++11 } } // { dg-options "" } +// Override any default-'-fno-exceptions': +// { dg-additional-options -fexceptions } static_assert (true, ""); static_assert (true, ("")); // { dg-warning "'static_assert' with non-string message only available with" "" { target c++23_down } }
reply other threads:[~2023-11-29 13:13 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20231129131317.9CF813883006@sourceware.org \ --to=tschwinge@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).