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

Martin Jambor <jamborm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jamborm at gcc dot gnu.org

--- Comment #2 from Martin Jambor <jamborm at gcc dot gnu.org> ---
Out of the entire hsa merge, it is only addition of the assert itself
that "causes" the ICE.  If I check out r232546 and patch it with:

diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index d7df3db..f38dc88 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -3777,7 +3777,11 @@ scan_omp_1_op (tree *tp, int *walk_subtrees, void *data)
     case LABEL_DECL:
     case RESULT_DECL:
       if (ctx)
-       *tp = remap_decl (t, &ctx->cb);
+       {
+         tree repl = remap_decl (t, &ctx->cb);
+         gcc_checking_assert (TREE_CODE (repl) != ERROR_MARK);
+         *tp = repl;
+       }
       break;

     default:


I get the same ICE, so if the assert is correct (I believe it is), the
bug is pre-existing.  But let me have a look a bit more.

Reply via email to