public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug d/96924] New: d: ICE in create_tmp_var, at gimple-expr.c:482
@ 2020-09-03 14:08 ibuclaw at gdcproject dot org
  2020-09-04 21:02 ` [Bug d/96924] " cvs-commit at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ibuclaw at gdcproject dot org @ 2020-09-03 14:08 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96924
           Summary: d: ICE in create_tmp_var, at gimple-expr.c:482
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: ibuclaw at gdcproject dot org
  Target Milestone: ---

Codegen pass is generating a SAVE_EXPR when it really shouldn't.
---
struct Memo
{
    string source;
    this(this);
}

void compile(string src, size_t end)
{
    Memo[] stack;
    stack  ~= Memo(src[end .. $]);
}

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug d/96924] d: ICE in create_tmp_var, at gimple-expr.c:482
  2020-09-03 14:08 [Bug d/96924] New: d: ICE in create_tmp_var, at gimple-expr.c:482 ibuclaw at gdcproject dot org
@ 2020-09-04 21:02 ` cvs-commit at gcc dot gnu.org
  2020-09-04 21:02 ` cvs-commit at gcc dot gnu.org
  2020-09-04 21:06 ` ibuclaw at gdcproject dot org
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-09-04 21:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain Buclaw <ibuclaw@gcc.gnu.org>:

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

commit r11-3015-gf8eabd47ac5335ebab0d83ff61fb680a46888be8
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date:   Fri Sep 4 22:54:22 2020 +0200

    d: Fix ICE in create_tmp_var, at gimple-expr.c:482

    Array concatenate expressions were creating more SAVE_EXPRs than what
    was necessary.  The internal error itself was the result of a forced
    temporary being made on a TREE_ADDRESSABLE type.

    gcc/d/ChangeLog:

            PR d/96924
            * expr.cc (ExprVisitor::visit (CatAssignExp *)): Don't force
            temporaries needlessly.

    gcc/testsuite/ChangeLog:

            PR d/96924
            * gdc.dg/simd13927b.d: Removed.
            * gdc.dg/pr96924.d: New test.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug d/96924] d: ICE in create_tmp_var, at gimple-expr.c:482
  2020-09-03 14:08 [Bug d/96924] New: d: ICE in create_tmp_var, at gimple-expr.c:482 ibuclaw at gdcproject dot org
  2020-09-04 21:02 ` [Bug d/96924] " cvs-commit at gcc dot gnu.org
@ 2020-09-04 21:02 ` cvs-commit at gcc dot gnu.org
  2020-09-04 21:06 ` ibuclaw at gdcproject dot org
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-09-04 21:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Iain Buclaw
<ibuclaw@gcc.gnu.org>:

https://gcc.gnu.org/g:40af8b2eff82f28d83b2a5fe153cbc53af665956

commit r10-8711-g40af8b2eff82f28d83b2a5fe153cbc53af665956
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date:   Fri Sep 4 22:54:22 2020 +0200

    d: Fix ICE in create_tmp_var, at gimple-expr.c:482

    Array concatenate expressions were creating more SAVE_EXPRs than what
    was necessary.  The internal error itself was the result of a forced
    temporary being made on a TREE_ADDRESSABLE type.

    gcc/d/ChangeLog:

            PR d/96924
            * expr.cc (ExprVisitor::visit (CatAssignExp *)): Don't force
            temporaries needlessly.

    gcc/testsuite/ChangeLog:

            PR d/96924
            * gdc.dg/pr96924.d: New test.

    (cherry picked from commit 52908b8de15a1c762a73063f1162bcedfcc993b4)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug d/96924] d: ICE in create_tmp_var, at gimple-expr.c:482
  2020-09-03 14:08 [Bug d/96924] New: d: ICE in create_tmp_var, at gimple-expr.c:482 ibuclaw at gdcproject dot org
  2020-09-04 21:02 ` [Bug d/96924] " cvs-commit at gcc dot gnu.org
  2020-09-04 21:02 ` cvs-commit at gcc dot gnu.org
@ 2020-09-04 21:06 ` ibuclaw at gdcproject dot org
  2 siblings, 0 replies; 4+ messages in thread
From: ibuclaw at gdcproject dot org @ 2020-09-04 21:06 UTC (permalink / raw)
  To: gcc-bugs

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

Iain Buclaw <ibuclaw at gdcproject dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
Fix committed.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-04 21:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-03 14:08 [Bug d/96924] New: d: ICE in create_tmp_var, at gimple-expr.c:482 ibuclaw at gdcproject dot org
2020-09-04 21:02 ` [Bug d/96924] " cvs-commit at gcc dot gnu.org
2020-09-04 21:02 ` cvs-commit at gcc dot gnu.org
2020-09-04 21:06 ` ibuclaw at gdcproject dot org

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).