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

--- Comment #14 from Sam James <sjames at gcc dot gnu.org> ---
Created attachment 59336
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59336&action=edit
kio_sftp.cpp.ii.xz

Same compiler as https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116914#c13.

We also fail with kio-extras-24.08.2:
```
/var/tmp/portage/kde-apps/kio-extras-24.08.2/work/kio-extras-24.08.2/sftp/kio_sftp.cpp:
In function ‘void
SFTPWorker::asyncWrite(_ZN10SFTPWorker10asyncWriteEP16sftp_file_structN5QCoro9Ge
neratorINS_12ReadResponseEEE.Frame*)’:
/var/tmp/portage/kde-apps/kio-extras-24.08.2/work/kio-extras-24.08.2/sftp/kio_sftp.cpp:2477:89:
internal compiler error: in gimplify_var_or_parm_decl, at gimplify.cc:3313
 2477 |             const auto length = qMin<int>(MAX_XFER_BUF_SIZE,
response.filedata.size() - offset);
      |                                                                        
                ^~~~~~
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://bugs.gentoo.org/> for instructions.
```

I should say: note that these cases work fine with -std=c++20, they need
gnu++20.

Reproduces for me with 'g++ -c kio_sftp.cpp.ii -std=gnu++20
-march=icelake-server'. Attached kio_sftp.cpp.ii.xz.

Reply via email to