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 c++/108698] [13 Regression] decltype ((T() + ‘excess_precision_expr’ not supported by dump_expr<expression error>)) median(ndarray<T>) [with T = double]’: since  r13-3290-g98e341130f87984a
Date: Thu, 09 Feb 2023 08:32:40 +0000	[thread overview]
Message-ID: <bug-108698-4-ByRMvPdk8j@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-108698-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

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

commit r13-5751-gb1ed0c9671b99c6b06cbb8c61be14cdec0998de8
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Thu Feb 9 09:31:55 2023 +0100

    c++: Mangle EXCESS_PRECISION_EXPR <REAL_CST> as fold_convert REAL_CST
[PR108698]

    For standard excess precision, like the C FE we parse floating
    point constants as EXCESS_PRECISION_EXPR of promoted REAL_CST
    rather than the nominal REAL_CST, and as the following testcase
    shows the constants might need mangling.

    The following patch mangles those as fold_convert of the REAL_CST
    to EXCESS_PRECISION_EXPR type, i.e. how they were mangled before.

    I'm not really sure EXCESS_PRECISION_EXPR can appear elsewhere
    in expressions that would need mangling, tried various testcases
    but haven't managed to come up with one.  If that is possible,
    we'd keep ICEing on it without/with this patch, and the big question
    is how to mangle those; they could be mangled as casts from the
    promoted type back to nominal, but then in the mangled expressions
    one could see the effects of excess precision.  Until we have
    a reproducer, that is just theoretical though.

    2023-02-09  Jakub Jelinek  <jakub@redhat.com>

            PR c++/108698
            * mangle.cc (write_expression, write_template_arg): Handle
            EXCESS_PRECISION_EXPR with REAL_CST operand as
            write_template_arg_literal on fold_convert of the REAL_CST
            to EXCESS_PRECISION_EXPR type.

            * g++.dg/cpp0x/pr108698.C: New test.

  parent reply	other threads:[~2023-02-09  8:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-07 14:09 [Bug tree-optimization/108698] New: " marxin at gcc dot gnu.org
2023-02-07 14:09 ` [Bug tree-optimization/108698] " marxin at gcc dot gnu.org
2023-02-07 16:33 ` [Bug c++/108698] " jakub at gcc dot gnu.org
2023-02-07 19:38 ` jakub at gcc dot gnu.org
2023-02-07 19:38 ` jakub at gcc dot gnu.org
2023-02-09  8:32 ` cvs-commit at gcc dot gnu.org [this message]
2023-02-09  8:34 ` jakub 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-108698-4-ByRMvPdk8j@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).