public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/113366] g++.dg/cpp2a/concepts-pr67774.C FAIL Date: Sat, 13 Jan 2024 11:40:00 +0000 [thread overview] Message-ID: <bug-113366-4-xm3EW2hgmw@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-113366-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113366 Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2024-01-13 Status|UNCONFIRMED |NEW --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- I already defined a constexpr bool variable template in that class, and using it in the __maybe_const_t alias seems to fix the -fconcepts-ts problem: // Format as const if possible, to reduce instantiations. template<typename _Tp> using __maybe_const_t = __conditional_t<__formattable<_Tp>, const _Tp, _Tp>; But then there are loads of other errors due to using attributes on constrained functions: format:4159:5: error: two consecutive '[' shall only introduce an attribute before '[' token 4159 | [[__gnu__::__always_inline__]] I'll need to move those attributes. Or maybe I can just make <format> reject attempts to use it with -fconcepts-ts ]:-) <format> is C++20 code, so you don't need the Concepts TS. Fix your concepts to work with C++20 instead!
next prev parent reply other threads:[~2024-01-13 11:40 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-01-13 0:33 [Bug testsuite/113366] New: " mpolacek at gcc dot gnu.org 2024-01-13 11:32 ` [Bug testsuite/113366] " redi at gcc dot gnu.org 2024-01-13 11:40 ` redi at gcc dot gnu.org [this message] 2024-01-13 11:48 ` redi at gcc dot gnu.org 2024-01-15 17:18 ` cvs-commit at gcc dot gnu.org 2024-01-18 21:03 ` cvs-commit at gcc dot gnu.org
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=bug-113366-4-xm3EW2hgmw@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@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).