public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/98056] New: internal compiler error: tree check: expected record_type or union_type or qual_union_type, have array_type in build_special_member_call, at cp/call.c:9862
@ 2020-11-29 20:15 lemourin at gmail dot com
  2020-11-29 20:17 ` [Bug c++/98056] " lemourin at gmail dot com
                   ` (25 more replies)
  0 siblings, 26 replies; 27+ messages in thread
From: lemourin at gmail dot com @ 2020-11-29 20:15 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98056
           Summary: internal compiler error: tree check: expected
                    record_type or union_type or qual_union_type, have
                    array_type in build_special_member_call, at
                    cp/call.c:9862
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: lemourin at gmail dot com
  Target Milestone: ---

Created attachment 49647
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49647&action=edit
preprocessor output; compressed

The attached .ii file causes:

internal compiler error: tree check: expected record_type or union_type or
qual_union_type, have array_type in build_special_member_call, at
cp/call.c:9862

The compiler used is built at head (commit f59be8dfbd85..) with default
configure flags on Ubuntu 20.04 running in WSL 1. Same issue occurs with
g++-10, g++-9 shipped with the distro.

The compiler flags used:

-fcoroutines -std=gnu++2a

Same code works well on latest clang and msvc.

The issue can be worked around by modifying calls to util::FetchJson in
GoogleDrive class in a way:

util::FetchJson(Request<>{ ... }, ...)

change to

auto request = ...;
util::FetchJson(std::move(request), ...)

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

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

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-29 20:15 [Bug c++/98056] New: internal compiler error: tree check: expected record_type or union_type or qual_union_type, have array_type in build_special_member_call, at cp/call.c:9862 lemourin at gmail dot com
2020-11-29 20:17 ` [Bug c++/98056] " lemourin at gmail dot com
2020-11-30  8:38 ` marxin at gcc dot gnu.org
2020-11-30 10:09 ` [Bug c++/98056] ICE tree check: expected record_type or union_type or qual_union_type, have array_type in build_special_member_call, at cp/call.c:9862 since r11-2183-g0f66b8486cea8668 marxin at gcc dot gnu.org
2021-03-06  9:52 ` nilsgladitz at gmail dot com
2021-03-06 10:04 ` iains at gcc dot gnu.org
2021-03-30 13:13 ` iains at gcc dot gnu.org
2021-04-08 12:02 ` rguenth at gcc dot gnu.org
2021-04-23 15:47 ` jakub at gcc dot gnu.org
2021-06-19 11:21 ` iains at gcc dot gnu.org
2021-07-12  9:01 ` iains at gcc dot gnu.org
2021-08-16  8:11 ` iains at gcc dot gnu.org
2021-09-30 20:18 ` iains at gcc dot gnu.org
2021-10-06 10:56 ` [Bug c++/98056] coroutines: ICE tree check: expected record_type or union_type or qual_union_type, have array_type " avi@cloudius-systems.com
2021-10-06 11:48 ` iains at gcc dot gnu.org
2021-10-25 11:41 ` iains at gcc dot gnu.org
2021-12-06 14:56 ` iains at gcc dot gnu.org
2022-03-20 12:25 ` sks_f at mail dot ru
2022-04-18 19:05 ` iains at gcc dot gnu.org
2022-06-28 10:42 ` jakub at gcc dot gnu.org
2022-07-05 11:36 ` charles at yubo dot live
2023-03-15 22:29 ` cvs-commit at gcc dot gnu.org
2023-03-15 23:03 ` avi at scylladb dot com
2023-04-18 20:45 ` cvs-commit at gcc dot gnu.org
2023-04-22  0:22 ` cvs-commit at gcc dot gnu.org
2023-07-07  9:14 ` rguenth at gcc dot gnu.org
2024-05-09 21:01 ` public.melg8 at gmail dot com

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