public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/111363] New: internal compiler error when mistype type of operator<=>
@ 2023-09-10 20:47 sergei at tsaplin dot ru
2023-09-11 11:16 ` [Bug c++/111363] " redi at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: sergei at tsaplin dot ru @ 2023-09-10 20:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111363
Bug ID: 111363
Summary: internal compiler error when mistype type of
operator<=>
Product: gcc
Version: 9.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: sergei at tsaplin dot ru
Target Milestone: ---
Created attachment 55872
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55872&action=edit
archive with 4 file described in the end of comment
mistyped:
"B operator<=>(const B &) const = default;"
instead of:
"auto operator<=>(const B &) const = default;"
Got following error on compilation:
kk.cpp:20:20: required from here
kk.cpp:15:5: internal compiler error: in finish_expr_stmt, at
cp/semantics.c:682
15 | B operator<=>(const B &) const = default;
| ^~~~~~~~
0x7f1c30f45082 __libc_start_main
../csu/libc-start.c:308
Error is reproduced when struct B has other struct A as a member and A has
std::array as a member.
gcc version: 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.2)
exec command: g++ -std=c++20 kk.cpp -save-temps -v &> compiler_output.txt
In attachements:
gcc_v_output.txt: full output of "gcc -v"
compiler_output.txt: output of exec command "g++ ..."
kk.ii: file produced by -save-temps
kk.cpp: single file with source code
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/111363] internal compiler error when mistype type of operator<=>
2023-09-10 20:47 [Bug c++/111363] New: internal compiler error when mistype type of operator<=> sergei at tsaplin dot ru
@ 2023-09-11 11:16 ` redi at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: redi at gcc dot gnu.org @ 2023-09-11 11:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111363
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Target Milestone|--- |11.0
Resolution|--- |FIXED
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
GCC 9 is no longer supported, and this was already fixed years ago in r11-5865
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-11 11:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-10 20:47 [Bug c++/111363] New: internal compiler error when mistype type of operator<=> sergei at tsaplin dot ru
2023-09-11 11:16 ` [Bug c++/111363] " redi 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).