public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ppalka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/66857] [5/6 Regression] Reference not bound to lvalue Date: Mon, 13 Jul 2015 23:44:00 -0000 [thread overview] Message-ID: <bug-66857-4-bGsOdXqicC@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-66857-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66857 Patrick Palka <ppalka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ppalka at gcc dot gnu.org --- Comment #4 from Patrick Palka <ppalka at gcc dot gnu.org> --- Reverting the change made to ocp_convert in r217814 fixes it: diff --git a/gcc/cp/cvt.c b/gcc/cp/cvt.c index 13bc1f7..6d4bd9a 100644 --- a/gcc/cp/cvt.c +++ b/gcc/cp/cvt.c @@ -687,7 +687,8 @@ ocp_convert (tree type, tree expr, int convtype, int flags, } /* FIXME remove when moving to c_fully_fold model. */ - e = scalar_constant_value (e); + if (!CLASS_TYPE_P (type)) + e = scalar_constant_value (e); if (error_operand_p (e)) return error_mark_node;
next prev parent reply other threads:[~2015-07-13 23:44 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-07-13 12:23 [Bug c++/66857] New: " sebastian.lauwers at gmail dot com 2015-07-13 12:24 ` [Bug c++/66857] " sebastian.lauwers at gmail dot com 2015-07-13 12:28 ` redi at gcc dot gnu.org 2015-07-13 13:07 ` [Bug c++/66857] [5/6 Regression] " redi at gcc dot gnu.org 2015-07-13 23:44 ` ppalka at gcc dot gnu.org [this message] 2015-07-15 14:24 ` jason at gcc dot gnu.org 2015-07-25 23:16 ` ppalka at gcc dot gnu.org 2015-08-14 16:33 ` jason at gcc dot gnu.org 2015-08-14 16:33 ` jason 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-66857-4-bGsOdXqicC@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).