public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "gcc-bugzilla at contacts dot eelis dot net" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/36430] Cannot convert a temporary to a non-const reference even with conversion operator Date: Thu, 21 Aug 2008 11:44:00 -0000 [thread overview] Message-ID: <20080821114333.15422.qmail@sourceware.org> (raw) In-Reply-To: <bug-36430-16279@http.gcc.gnu.org/bugzilla/> ------- Comment #1 from gcc-bugzilla at contacts dot eelis dot net 2008-08-21 11:43 ------- This report is invalid. By 12.3.2, "A conversion function is never used to convert a (possibly cv-qualified) object to the (possibly cv-qualified) same object type (or a reference to it)." Comeau warns explicitly about this, saying: line 2: warning: "Foo::operator Foo &()" will not be called for implicit or explicit conversions -- gcc-bugzilla at contacts dot eelis dot net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gcc-bugzilla at contacts dot | |eelis dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36430
next prev parent reply other threads:[~2008-08-21 11:44 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-06-03 18:39 [Bug c++/36430] New: " gbrammer at gmx dot de 2008-08-21 11:44 ` gcc-bugzilla at contacts dot eelis dot net [this message] 2008-08-21 12:05 ` [Bug c++/36430] " paolo dot carlini at oracle dot com
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=20080821114333.15422.qmail@sourceware.org \ --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).