public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "tobi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/112557] ICE with coroutines in build_special_member_call, at cp/call.cc:11093
Date: Mon, 20 Nov 2023 03:43:34 +0000	[thread overview]
Message-ID: <bug-112557-4-R2zCRgqT2j@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-112557-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #1 from Tobias Schlüter <tobi at gcc dot gnu.org> ---
With today's trunk on x86-64 I can reproduce this, giving the following:

$ ../gcc.git/build/gcc/cc1plus t.cc --std=c++20 -fpermissive
-fext-numeric-literals 2>&1
[ ... stripping away thousands of warnings ... ]
/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParse.hpp:
In static member function ‘static
boost::asio::awaitable<std::unique_ptr<LP::DTrackDebugDataListener::Impl> >
LP::DTrac>
/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParse.hpp:263:5:
internal compiler error: tree check: expected record_type or union_type or
qual_union_type, have array_type in bu>
0x938c90 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        ../../gcc/tree.cc:8952
0x73fd02 tree_check3(tree_node*, char const*, int, char const*, tree_code,
tree_code, tree_code)
        ../../gcc/tree.h:3642
0x73fd02 build_special_member_call(tree_node*, tree_node*, vec<tree_node*,
va_gc, vl_embed>**, tree_node*, int, int)
        ../../gcc/cp/call.cc:11071
0xaa0eac maybe_promote_temps
        ../../gcc/cp/coroutines.cc:3142
0xaa0eac await_statement_walker
        ../../gcc/cp/coroutines.cc:3753
0x162f7dc walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*,
tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*),
void*, hash_>
        ../../gcc/tree.cc:11418
0xaa0668 await_statement_walker
        ../../gcc/cp/coroutines.cc:3424
0x162f7dc walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*,
tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*),
void*, hash_>
        ../../gcc/tree.cc:11418
0x162f934 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*,
tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*),
void*, hash_>
        ../../gcc/tree.cc:11652
0xaa0668 await_statement_walker
        ../../gcc/cp/coroutines.cc:3424
0x162f7dc walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*,
tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*),
void*, hash_>
        ../../gcc/tree.cc:11418
0x162f934 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*,
tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*),
void*, hash_>
        ../../gcc/tree.cc:11652
0xaa0668 await_statement_walker
        ../../gcc/cp/coroutines.cc:3424
0x162f7dc walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*,
tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*),
void*, hash_>
        ../../gcc/tree.cc:11418
0x162f934 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*,
tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*),
void*, hash_>
        ../../gcc/tree.cc:11652
0xaa0668 await_statement_walker
        ../../gcc/cp/coroutines.cc:3424
0x162f7dc walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*,
tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*),
void*, hash_>
        ../../gcc/tree.cc:11418
0x162f934 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*,
tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*),
void*, hash_>
        ../../gcc/tree.cc:11652
0xaa0668 await_statement_walker
        ../../gcc/cp/coroutines.cc:3424
0x162f7dc walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*,
tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*),
void*, hash_>
        ../../gcc/tree.cc:11418
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

The error location is this:
#2  build_special_member_call (instance=0x7fffe891d090, name=0x7ffff76f5200,
args=0x0, binfo=0x7fffe88e4540, flags=1, complain=3) at
../../gcc/cp/call.cc:11071
11071         binfo = TYPE_BINFO (binfo);
(gdb) l
11066       {
11067         /* Resolve the name.  */
11068         if (!complete_type_or_maybe_complain (binfo, NULL_TREE,
complain))
11069           return error_mark_node;
11070
11071         binfo = TYPE_BINFO (binfo);
11072       }
11073
11074     gcc_assert (binfo != NULL_TREE);
11075
(gdb)

      reply	other threads:[~2023-11-20  3:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-16  3:35 [Bug c++/112557] New: " tobi at gcc dot gnu.org
2023-11-20  3:43 ` tobi at gcc dot gnu.org [this message]

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-112557-4-R2zCRgqT2j@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).