public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/116327] New: ICE in coroutine with parameter preview on lambda with captures.
@ 2024-08-10 14:42 jehelset at gmail dot com
  2024-08-10 14:47 ` [Bug c++/116327] " jehelset at gmail dot com
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: jehelset at gmail dot com @ 2024-08-10 14:42 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 116327
           Summary: ICE in coroutine with parameter preview on lambda with
                    captures.
           Product: gcc
           Version: 14.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jehelset at gmail dot com
  Target Milestone: ---

ICE from `expand_expr_real_1` in `expr.cc:11376` 

Seems to happen after 066c7893eae, in particular:

@@ -4618,13 +4618,8 @@ morph_fn_to_coro (tree orig, tree *resumer, tree
*destroyer)
          if (parm_i->this_ptr || parm_i->lambda_cobj)
            {
              /* We pass a reference to *this to the allocator lookup.  */
-             tree tt = TREE_TYPE (TREE_TYPE (arg));
-             tree this_ref = build1 (INDIRECT_REF, tt, arg);
-             tt = cp_build_reference_type (tt, false);
-             this_ref = convert_to_reference (tt, this_ref, CONV_STATIC,
-                                              LOOKUP_NORMAL , NULL_TREE,
-                                              tf_warning_or_error);
-             vec_safe_push (args, convert_from_reference (this_ref));
+             tree this_ref = cp_build_fold_indirect_ref (arg);
+             vec_safe_push (args, this_ref);
            }
          else
            vec_safe_push (args, convert_from_reference (arg));

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

end of thread, other threads:[~2024-09-19 22:21 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-10 14:42 [Bug c++/116327] New: ICE in coroutine with parameter preview on lambda with captures jehelset at gmail dot com
2024-08-10 14:47 ` [Bug c++/116327] " jehelset at gmail dot com
2024-08-10 15:03 ` jehelset at gmail dot com
2024-08-12 13:36 ` [Bug c++/116327] [14/15 Regression] " ppalka at gcc dot gnu.org
2024-08-12 14:33 ` ppalka at gcc dot gnu.org
2024-08-13  1:56 ` [Bug c++/116327] [14/15 Regression] ICE in coroutine with parameter preview on lambda with captures since r15-2210 jehelset at gmail dot com
2024-08-13 13:35 ` ppalka at gcc dot gnu.org
2024-08-13 14:51 ` jehelset at gmail dot com
2024-08-15 14:20 ` cvs-commit at gcc dot gnu.org
2024-08-15 14:33 ` cvs-commit at gcc dot gnu.org
2024-08-15 14:39 ` ppalka at gcc dot gnu.org
2024-08-21 19:02 ` pinskia at gcc dot gnu.org
2024-09-19 22:21 ` arsen at gcc dot gnu.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).