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

            Bug ID: 120851
           Summary: internal compiler error: in expand_call, at
                    calls.cc:3729
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bic60176 at gmail dot com
  Target Milestone: ---

Created attachment 61742
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61742&action=edit
testcase

Compiler Explorer: https://godbolt.org/z/83hPr7vE1

Console:
<source>: In function 'main':
<source>:24:3: sorry, unimplemented: passing too large argument on stack
   24 |   foo(*&q);
      |   ^~~~~~~~
during RTL pass: expand
<source>:24:3: internal compiler error: in expand_call, at calls.cc:3729
0x250ccf5 diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag
(*) [1], diagnostic_t)
        ???:0
0x252f896 internal_error(char const*, ...)
        ???:0
0x9fd4f2 fancy_abort(char const*, int, char const*)
        ???:0
0xbbd83c expand_call(tree_node*, rtx_def*, int)
        ???:0
0xd0f4fd expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ???:0
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.
ASM generation compiler returned: 1
<source>: In function 'main':
<source>:24:3: sorry, unimplemented: passing too large argument on stack
   24 |   foo(*&q);
      |   ^~~~~~~~
during RTL pass: expand
<source>:24:3: internal compiler error: in expand_call, at calls.cc:3729
0x250ccf5 diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag
(*) [1], diagnostic_t)
        ???:0
0x252f896 internal_error(char const*, ...)
        ???:0
0x9fd4f2 fancy_abort(char const*, int, char const*)
        ???:0
0xbbd83c expand_call(tree_node*, rtx_def*, int)
        ???:0
0xd0f4fd expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ???:0
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.
Execution build compiler returned: 1
Build failed

Reply via email to