public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/108833] New: internal compiler error: Segmentation fault (GCC 12.1.1)
@ 2023-02-17 11:01 liavonlida at gmail dot com
2023-02-17 11:50 ` [Bug c++/108833] [12 Regression] " rguenth at gcc dot gnu.org
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: liavonlida at gmail dot com @ 2023-02-17 11:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108833
Bug ID: 108833
Summary: internal compiler error: Segmentation fault (GCC
12.1.1)
Product: gcc
Version: 12.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: liavonlida at gmail dot com
Target Milestone: ---
Created attachment 54480
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54480&action=edit
I tried to make the sample minimal.
Compilation fails with Segmentation fault.
<source>:250:8: internal compiler error: Segmentation fault
250 | s >> range;
| ^~~~~
0x1bb069e internal_error(char const*, ...)
???:0
0x87ce73 instantiate_decl(tree_node*, bool, bool)
???:0
0x898f3b instantiate_pending_templates(int)
???:0
0x7a4928 c_parse_final_cleanups()
???:0
I checked other versions at godbolt.org:
gcc 12.1.0 -> ok
gcc 12.1.1 -> fail <<- my case with gcc-toolset-12 on Rocky Linux
8.7
gcc 12.2.0 -> fail
gcc trunk(13.0.1) -> ok
Minimal code is attached
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/108833] [12 Regression] internal compiler error: Segmentation fault (GCC 12.1.1)
2023-02-17 11:01 [Bug c++/108833] New: internal compiler error: Segmentation fault (GCC 12.1.1) liavonlida at gmail dot com
@ 2023-02-17 11:50 ` rguenth at gcc dot gnu.org
2023-02-17 17:28 ` mpolacek at gcc dot gnu.org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-02-17 11:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108833
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|internal compiler error: |[12 Regression] internal
|Segmentation fault (GCC |compiler error:
|12.1.1) |Segmentation fault (GCC
| |12.1.1)
Status|UNCONFIRMED |NEW
Target Milestone|--- |12.3
Last reconfirmed| |2023-02-17
Keywords| |ice-on-valid-code,
| |needs-bisection,
| |needs-reduction
Ever confirmed|0 |1
Known to work| |12.1.0, 13.0
Known to fail| |12.2.0
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/108833] [12 Regression] internal compiler error: Segmentation fault (GCC 12.1.1)
2023-02-17 11:01 [Bug c++/108833] New: internal compiler error: Segmentation fault (GCC 12.1.1) liavonlida at gmail dot com
2023-02-17 11:50 ` [Bug c++/108833] [12 Regression] " rguenth at gcc dot gnu.org
@ 2023-02-17 17:28 ` mpolacek at gcc dot gnu.org
2023-02-17 17:32 ` jakub at gcc dot gnu.org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2023-02-17 17:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108833
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|needs-bisection |
CC| |mpolacek at gcc dot gnu.org
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Seems to have been fixed by
commit e8ed26c2ac38ab1f6ed5a627d9089a9243e06a0c
Author: Jason Merrill <jason@redhat.com>
Date: Tue Jun 7 15:52:30 2022 -0400
c++: non-templated friends [PR105852]
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/108833] [12 Regression] internal compiler error: Segmentation fault (GCC 12.1.1)
2023-02-17 11:01 [Bug c++/108833] New: internal compiler error: Segmentation fault (GCC 12.1.1) liavonlida at gmail dot com
2023-02-17 11:50 ` [Bug c++/108833] [12 Regression] " rguenth at gcc dot gnu.org
2023-02-17 17:28 ` mpolacek at gcc dot gnu.org
@ 2023-02-17 17:32 ` jakub at gcc dot gnu.org
2023-02-17 17:36 ` jakub at gcc dot gnu.org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-02-17 17:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108833
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Reduced testcase:
struct input_t {
template <class T> struct range_t {
friend int &operator>>(int &, range_t &);
range_t(char);
};
int read_s;
void read() {
range_t<double> range(':');
read_s >> range;
}
};
int &operator>>(int &, input_t::range_t<double> &);
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/108833] [12 Regression] internal compiler error: Segmentation fault (GCC 12.1.1)
2023-02-17 11:01 [Bug c++/108833] New: internal compiler error: Segmentation fault (GCC 12.1.1) liavonlida at gmail dot com
` (2 preceding siblings ...)
2023-02-17 17:32 ` jakub at gcc dot gnu.org
@ 2023-02-17 17:36 ` jakub at gcc dot gnu.org
2023-02-17 17:44 ` jakub at gcc dot gnu.org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-02-17 17:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108833
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|needs-reduction |
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Note, even latest 12 branch ICEs on this. Tried various trunk snapshots from
13-1 up to latest in steps of ~ 500 and nothing ICEs though, so we'd need
bisection on the branch.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/108833] [12 Regression] internal compiler error: Segmentation fault (GCC 12.1.1)
2023-02-17 11:01 [Bug c++/108833] New: internal compiler error: Segmentation fault (GCC 12.1.1) liavonlida at gmail dot com
` (3 preceding siblings ...)
2023-02-17 17:36 ` jakub at gcc dot gnu.org
@ 2023-02-17 17:44 ` jakub at gcc dot gnu.org
2023-02-17 18:11 ` jakub at gcc dot gnu.org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-02-17 17:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108833
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
20220507 works (Fedora 12.1.1-1), 20230210 ICEs, on godbolt 12.2 ICEs
(supposedly 20220819), 20220628 ICEs (Fedora 12.1.1-2).
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/108833] [12 Regression] internal compiler error: Segmentation fault (GCC 12.1.1)
2023-02-17 11:01 [Bug c++/108833] New: internal compiler error: Segmentation fault (GCC 12.1.1) liavonlida at gmail dot com
` (4 preceding siblings ...)
2023-02-17 17:44 ` jakub at gcc dot gnu.org
@ 2023-02-17 18:11 ` jakub at gcc dot gnu.org
2023-02-17 18:42 ` [Bug c++/108833] [11/12 " jakub at gcc dot gnu.org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-02-17 18:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108833
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
So, to be exact, this ICE has been introduced by
r12-8467-ge057d454db4dcf48c22f75e57599f797d8e55baf
on the 12 branch.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/108833] [11/12 Regression] internal compiler error: Segmentation fault (GCC 12.1.1)
2023-02-17 11:01 [Bug c++/108833] New: internal compiler error: Segmentation fault (GCC 12.1.1) liavonlida at gmail dot com
` (5 preceding siblings ...)
2023-02-17 18:11 ` jakub at gcc dot gnu.org
@ 2023-02-17 18:42 ` jakub at gcc dot gnu.org
2023-02-17 18:43 ` jakub at gcc dot gnu.org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-02-17 18:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108833
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[12 Regression] internal |[11/12 Regression] internal
|compiler error: |compiler error:
|Segmentation fault (GCC |Segmentation fault (GCC
|12.1.1) |12.1.1)
Target Milestone|12.3 |11.4
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Ah, on the trunk r13-1017 also started to ICE on this testcase (r13-1016 was
fine),
but already r13-1018 fixed that. While r13-1017 was backported to 12 and 11
branches (current 11.x ICEs too), r13-1018 was not.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/108833] [11/12 Regression] internal compiler error: Segmentation fault (GCC 12.1.1)
2023-02-17 11:01 [Bug c++/108833] New: internal compiler error: Segmentation fault (GCC 12.1.1) liavonlida at gmail dot com
` (6 preceding siblings ...)
2023-02-17 18:42 ` [Bug c++/108833] [11/12 " jakub at gcc dot gnu.org
@ 2023-02-17 18:43 ` jakub at gcc dot gnu.org
2023-02-17 18:57 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-02-17 18:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108833
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Therefore, likely dup of PR106740, but I think we want reduced testcases from
both PRs on the trunk and on branches eventually when it is fixed there too.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/108833] [11/12 Regression] internal compiler error: Segmentation fault (GCC 12.1.1)
2023-02-17 11:01 [Bug c++/108833] New: internal compiler error: Segmentation fault (GCC 12.1.1) liavonlida at gmail dot com
` (7 preceding siblings ...)
2023-02-17 18:43 ` jakub at gcc dot gnu.org
@ 2023-02-17 18:57 ` jakub at gcc dot gnu.org
2023-04-27 12:07 ` rguenth at gcc dot gnu.org
2023-05-29 10:08 ` jakub at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-02-17 18:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108833
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Better reduced testcase that doesn't emit a warning:
struct input_t {
template <class T> struct range_t {
friend int &operator>>(int &, range_t<double> &);
range_t(char);
};
int read_s;
void read() {
range_t<double> range(':');
read_s >> range;
}
};
int &operator>>(int &, input_t::range_t<double> &);
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/108833] [11/12 Regression] internal compiler error: Segmentation fault (GCC 12.1.1)
2023-02-17 11:01 [Bug c++/108833] New: internal compiler error: Segmentation fault (GCC 12.1.1) liavonlida at gmail dot com
` (8 preceding siblings ...)
2023-02-17 18:57 ` jakub at gcc dot gnu.org
@ 2023-04-27 12:07 ` rguenth at gcc dot gnu.org
2023-05-29 10:08 ` jakub at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-04-27 12:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108833
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/108833] [11/12 Regression] internal compiler error: Segmentation fault (GCC 12.1.1)
2023-02-17 11:01 [Bug c++/108833] New: internal compiler error: Segmentation fault (GCC 12.1.1) liavonlida at gmail dot com
` (9 preceding siblings ...)
2023-04-27 12:07 ` rguenth at gcc dot gnu.org
@ 2023-05-29 10:08 ` jakub at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-05-29 10:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108833
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|11.4 |11.5
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 11.4 is being released, retargeting bugs to GCC 11.5.
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2023-05-29 10:08 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-17 11:01 [Bug c++/108833] New: internal compiler error: Segmentation fault (GCC 12.1.1) liavonlida at gmail dot com
2023-02-17 11:50 ` [Bug c++/108833] [12 Regression] " rguenth at gcc dot gnu.org
2023-02-17 17:28 ` mpolacek at gcc dot gnu.org
2023-02-17 17:32 ` jakub at gcc dot gnu.org
2023-02-17 17:36 ` jakub at gcc dot gnu.org
2023-02-17 17:44 ` jakub at gcc dot gnu.org
2023-02-17 18:11 ` jakub at gcc dot gnu.org
2023-02-17 18:42 ` [Bug c++/108833] [11/12 " jakub at gcc dot gnu.org
2023-02-17 18:43 ` jakub at gcc dot gnu.org
2023-02-17 18:57 ` jakub at gcc dot gnu.org
2023-04-27 12:07 ` rguenth at gcc dot gnu.org
2023-05-29 10:08 ` jakub 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).