https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127979
Bug ID: 127979
Summary: ICE in maybe_delete_defaulted_fn, at cp/method.cc
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: s.kimura.h41104 at gmail dot com
Target Milestone: ---
Compiler Explorer: https://godbolt.org/z/vGdrh8des
Reproducer:
```
struct S {
__int128 S() = default;
};
```
Backtrace:
<source>:2:3: error: return type specification for constructor invalid
2 | __int128 S() = default;
| ^~~~~~~~
<source>:1:8: internal compiler error: in maybe_delete_defaulted_fn, at
cp/method.cc:3890
1 | struct S {
| ^
0x2c67a58 diagnostics::context::diagnostic_impl(rich_location*,
diagnostics::metadata const*, diagnostics::option_id, char const*,
__va_list_tag (*) [1], diagnostics::kind)
???:0
0x2c5c69b internal_error(char const*, ...)
???:0
0xb9c75c fancy_abort(char const*, int, char const*)
???:0
0xbf827d finish_struct_1(tree_node*)
???:0
0xbf9c67 finish_struct(tree_node*, tree_node*)
???:0
0xdf70f3 c_parse_file()
???:0
0xf8b269 c_common_parse_file()
???:0
This ICE goes back to gcc-15:
https://godbolt.org/z/sxqfdzn1o