public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/115145] Help lambda in rewritten std::variant comparisons does not specify return type
Date: Wed, 22 May 2024 09:03:00 +0000	[thread overview]
Message-ID: <bug-115145-4-bKr0GuYsQr@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-115145-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115145

--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:

https://gcc.gnu.org/g:b33f44ca6ce2dae7502ce138600e1631ffc9232c

commit r15-769-gb33f44ca6ce2dae7502ce138600e1631ffc9232c
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue May 21 15:13:01 2024 +0100

    libstdc++: Ensure std::variant relops convert to bool [PR115145]

    Ensure that the result of comparing the variant alternatives is
    converted to bool immediately rather than copied.

    libstdc++-v3/ChangeLog:

            PR libstdc++/115145
            * include/std/variant (operator==, operator!=, operator<)
            (operator<=, operator>, operator>=): Add trailing-return-type to
            lambda expressions to trigger conversion to bool.
            * testsuite/20_util/variant/relops/115145.cc: New test.

      reply	other threads:[~2024-05-22  9:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-18  6:29 [Bug libstdc++/115145] New: " hewillk at gmail dot com
2024-05-22  9:03 ` cvs-commit at gcc dot gnu.org [this message]

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-115145-4-bKr0GuYsQr@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: 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).