From: "François Dumont" <frs.dumont@gmail.com>
To: libstdc++ <libstdc++@gcc.gnu.org>
Cc: gcc-patches <gcc-patches@gcc.gnu.org>
Subject: [PATCH][_GLIBCXX_INLINE_VERSION] Fix <contracts>
Date: Wed, 20 Sep 2023 06:51:05 +0200 [thread overview]
Message-ID: <55f0212a-f8d3-aa9e-8788-f5165484ac6c@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 349 bytes --]
libstdc++: Remove std::constract_violation from versioned namespace
GCC expects this type to be in std namespace directly.
libstdc++-v3/ChangeLog:
* include/experimental/contract:
Remove _GLIBCXX_BEGIN_NAMESPACE_VERSION/_GLIBCXX_END_NAMESPACE_VERSION.
It does fix 29 g++.dg/contracts in gcc testsuite.
Ok to commit ?
François
[-- Attachment #2: contract.patch --]
[-- Type: text/x-patch, Size: 550 bytes --]
diff --git a/libstdc++-v3/include/experimental/contract b/libstdc++-v3/include/experimental/contract
index fbf5ed01d8b..8bc12380cec 100644
--- a/libstdc++-v3/include/experimental/contract
+++ b/libstdc++-v3/include/experimental/contract
@@ -39,7 +39,6 @@
namespace std _GLIBCXX_VISIBILITY(default)
{
-_GLIBCXX_BEGIN_NAMESPACE_VERSION
namespace experimental
{
@@ -71,7 +70,6 @@ namespace experimental
} // namespace experimental
-_GLIBCXX_END_NAMESPACE_VERSION
} // namespace std
// To override the contract violation handler, define
next reply other threads:[~2023-09-20 4:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-20 4:51 François Dumont [this message]
2023-09-20 9:32 ` Jonathan Wakely
2023-09-20 17:51 ` François Dumont
2023-09-21 4:41 ` François Dumont
2023-10-08 14:06 ` Iain Sandoe
2023-10-09 5:06 ` François Dumont
2023-10-09 9:23 ` Iain Sandoe
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=55f0212a-f8d3-aa9e-8788-f5165484ac6c@gmail.com \
--to=frs.dumont@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=libstdc++@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: link
Be 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).