* [Bug tree-optimization/109524] [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre
2023-04-15 10:27 [Bug tree-optimization/109524] New: [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre zsojka at seznam dot cz
@ 2023-04-15 19:50 ` pinskia at gcc dot gnu.org
2023-04-15 20:17 ` pinskia at gcc dot gnu.org
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-04-15 19:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109524
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |13.0
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug tree-optimization/109524] [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre
2023-04-15 10:27 [Bug tree-optimization/109524] New: [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre zsojka at seznam dot cz
2023-04-15 19:50 ` [Bug tree-optimization/109524] " pinskia at gcc dot gnu.org
@ 2023-04-15 20:17 ` pinskia at gcc dot gnu.org
2023-04-15 20:18 ` pinskia at gcc dot gnu.org
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-04-15 20:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109524
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 54869
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54869&action=edit
Further reduced
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug tree-optimization/109524] [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre
2023-04-15 10:27 [Bug tree-optimization/109524] New: [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre zsojka at seznam dot cz
2023-04-15 19:50 ` [Bug tree-optimization/109524] " pinskia at gcc dot gnu.org
2023-04-15 20:17 ` pinskia at gcc dot gnu.org
@ 2023-04-15 20:18 ` pinskia at gcc dot gnu.org
2023-04-15 20:33 ` jakub at gcc dot gnu.org
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-04-15 20:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109524
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2023-04-15
Status|UNCONFIRMED |NEW
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug tree-optimization/109524] [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre
2023-04-15 10:27 [Bug tree-optimization/109524] New: [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre zsojka at seznam dot cz
` (2 preceding siblings ...)
2023-04-15 20:18 ` pinskia at gcc dot gnu.org
@ 2023-04-15 20:33 ` jakub at gcc dot gnu.org
2023-04-15 20:38 ` pinskia at gcc dot gnu.org
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-04-15 20:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109524
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aldyh at gcc dot gnu.org,
| |amacleod at redhat dot com,
| |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r13-3596-ge7310e24b1c0ca67b1bb
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug tree-optimization/109524] [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre
2023-04-15 10:27 [Bug tree-optimization/109524] New: [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre zsojka at seznam dot cz
` (3 preceding siblings ...)
2023-04-15 20:33 ` jakub at gcc dot gnu.org
@ 2023-04-15 20:38 ` pinskia at gcc dot gnu.org
2023-04-15 20:55 ` jakub at gcc dot gnu.org
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-04-15 20:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109524
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #3)
> Started with r13-3596-ge7310e24b1c0ca67b1bb
You might want to add -param=vrp1-mode=ranger when bisecting.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug tree-optimization/109524] [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre
2023-04-15 10:27 [Bug tree-optimization/109524] New: [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre zsojka at seznam dot cz
` (4 preceding siblings ...)
2023-04-15 20:38 ` pinskia at gcc dot gnu.org
@ 2023-04-15 20:55 ` jakub at gcc dot gnu.org
2023-04-15 21:12 ` pinskia at gcc dot gnu.org
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-04-15 20:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109524
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
That only moves it by a single revision back - r13-3595-g7b1cdca6d6d594a
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug tree-optimization/109524] [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre
2023-04-15 10:27 [Bug tree-optimization/109524] New: [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre zsojka at seznam dot cz
` (5 preceding siblings ...)
2023-04-15 20:55 ` jakub at gcc dot gnu.org
@ 2023-04-15 21:12 ` pinskia at gcc dot gnu.org
2023-04-15 22:49 ` jakub at gcc dot gnu.org
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-04-15 21:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109524
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #5)
> That only moves it by a single revision back - r13-3595-g7b1cdca6d6d594a
Which actually makes sense as the most reduced testcase has
__builtin_unreachable in it. I am not sure if the original non-reduced testcase
(which was not attached here had a function which returned without a return
value or not).
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug tree-optimization/109524] [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre
2023-04-15 10:27 [Bug tree-optimization/109524] New: [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre zsojka at seznam dot cz
` (6 preceding siblings ...)
2023-04-15 21:12 ` pinskia at gcc dot gnu.org
@ 2023-04-15 22:49 ` jakub at gcc dot gnu.org
2023-04-15 23:00 ` jakub at gcc dot gnu.org
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-04-15 22:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109524
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The edge in question has been removed in
#2 0x00000000025b0e32 in free_edge (fn=0x7fffea2ed7e8, e=<error reading
variable: Cannot access memory at address 0xa5a5a5a5a5a5a5f9>) at
../../gcc/cfg.cc:93
#3 0x00000000025b1631 in remove_edge_raw (e=<error reading variable: Cannot
access memory at address 0xa5a5a5a5a5a5a5f9>) at ../../gcc/cfg.cc:367
#4 0x00000000009e447c in remove_edge (e=<error reading variable: Cannot access
memory at address 0xa5a5a5a5a5a5a5f9>) at ../../gcc/cfghooks.cc:464
#5 0x00000000009e49b5 in delete_basic_block (bb=<basic_block 0x7fffea30c240
(8)>) at ../../gcc/cfghooks.cc:636
#6 0x000000000112b193 in remove_edge_and_dominated_blocks (e=<edge
0x7fffea30b600 (3 -> 6)>) at ../../gcc/tree-cfg.cc:8958
#7 0x000000000112b34f in gimple_purge_dead_eh_edges (bb=<basic_block
0x7fffea2dbea0 (3)>) at ../../gcc/tree-cfg.cc:9002
#8 0x000000000112b412 in gimple_purge_all_dead_eh_edges (blocks=0x39d0cb8) at
../../gcc/tree-cfg.cc:9029
#9 0x000000000131281a in substitute_and_fold_engine::substitute_and_fold
(this=0x7fffffffd960, block=<basic_block 0x0>) at
../../gcc/tree-ssa-propagate.cc:998
#10 0x000000000145ef6b in execute_ranger_vrp (fun=0x7fffea2ed7e8,
warn_array_bounds_p=true, final_p=false) at ../../gcc/tree-vrp.cc:1102
and
#0 0x00000000009d9c1b in bb_seq_addr (bb=<error reading variable: Cannot
access memory at address 0xa5a5a5a5a5a5a5f9>) at ../../gcc/gimple.h:1820
#1 0x00000000009f7325 in gsi_last_bb (bb=<error reading variable: Cannot
access memory at address 0xa5a5a5a5a5a5a5f9>) at
../../gcc/gimple-iterator.h:160
#2 0x0000000000c7fe17 in gsi_last_nondebug_bb (bb=<error reading variable:
Cannot access memory at address 0xa5a5a5a5a5a5a5f9>) at
../../gcc/gimple-iterator.h:321
#3 0x000000000265dca9 in gimple_outgoing_range_stmt_p (bb=<error reading
variable: Cannot access memory at address 0xa5a5a5a5a5a5a5f9>) at
../../gcc/gimple-range-edge.cc:42
#4 0x000000000145b54d in remove_unreachable::remove_and_update_globals
(this=0x7fffffffd970, final_p=false) at ../../gcc/tree-vrp.cc:136
#5 0x000000000145ef87 in execute_ranger_vrp (fun=0x7fffea2ed7e8,
warn_array_bounds_p=true, final_p=false) at ../../gcc/tree-vrp.cc:1104
then tries to access the already freed edge which was kept in some list of
edges across the gimple_purge_all_dead_eh_edges.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug tree-optimization/109524] [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre
2023-04-15 10:27 [Bug tree-optimization/109524] New: [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre zsojka at seznam dot cz
` (7 preceding siblings ...)
2023-04-15 22:49 ` jakub at gcc dot gnu.org
@ 2023-04-15 23:00 ` jakub at gcc dot gnu.org
2023-04-17 7:22 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-04-15 23:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109524
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Perhaps add to substitute_and_fold another callback before the dead eh edges
etc. are removed and perform this m_unreachable.remove_and_update_globals in
there rather than after substitute_and_fold returns?
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug tree-optimization/109524] [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre
2023-04-15 10:27 [Bug tree-optimization/109524] New: [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre zsojka at seznam dot cz
` (8 preceding siblings ...)
2023-04-15 23:00 ` jakub at gcc dot gnu.org
@ 2023-04-17 7:22 ` rguenth at gcc dot gnu.org
2023-04-17 9:03 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-04-17 7:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109524
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
I'm testing a simple patch^Whack.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug tree-optimization/109524] [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre
2023-04-15 10:27 [Bug tree-optimization/109524] New: [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre zsojka at seznam dot cz
` (9 preceding siblings ...)
2023-04-17 7:22 ` rguenth at gcc dot gnu.org
@ 2023-04-17 9:03 ` cvs-commit at gcc dot gnu.org
2023-04-17 9:04 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-04-17 9:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109524
--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:f66ae49bba7d3b8c999498a0e166c0a2f99ec61a
commit r13-7203-gf66ae49bba7d3b8c999498a0e166c0a2f99ec61a
Author: Richard Biener <rguenther@suse.de>
Date: Mon Apr 17 09:22:57 2023 +0200
tree-optimization/109524 - ICE with VRP edge removal
VRP queues edges to process late for updating global ranges for
__builtin_unreachable. But this interferes with edge removal
from substitute_and_fold. The following deals with this by
looking up the edge with source/dest block indices which do not
become stale.
PR tree-optimization/109524
* tree-vrp.cc (remove_unreachable::m_list): Change to a
vector of pairs of block indices.
(remove_unreachable::maybe_register_block): Adjust.
(remove_unreachable::remove_and_update_globals): Likewise.
Deal with removed blocks.
* g++.dg/pr109524.C: New testcase.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug tree-optimization/109524] [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre
2023-04-15 10:27 [Bug tree-optimization/109524] New: [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre zsojka at seznam dot cz
` (10 preceding siblings ...)
2023-04-17 9:03 ` cvs-commit at gcc dot gnu.org
@ 2023-04-17 9:04 ` rguenth at gcc dot gnu.org
2023-04-19 8:04 ` cvs-commit at gcc dot gnu.org
2023-04-19 8:09 ` cvs-commit at gcc dot gnu.org
13 siblings, 0 replies; 15+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-04-17 9:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109524
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #11 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug tree-optimization/109524] [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre
2023-04-15 10:27 [Bug tree-optimization/109524] New: [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre zsojka at seznam dot cz
` (11 preceding siblings ...)
2023-04-17 9:04 ` rguenth at gcc dot gnu.org
@ 2023-04-19 8:04 ` cvs-commit at gcc dot gnu.org
2023-04-19 8:09 ` cvs-commit at gcc dot gnu.org
13 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-04-19 8:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109524
--- Comment #12 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:794ffdb0fb6312ce07af0bfc797bef9f4cff4c61
commit r14-59-g794ffdb0fb6312ce07af0bfc797bef9f4cff4c61
Author: Jakub Jelinek <jakub@redhat.com>
Date: Wed Apr 19 10:01:04 2023 +0200
testsuite: Fix up pr109524.C for -std=c++23 [PR109524]
This testcase was reduced such that it isn't valid C++23, so with my
usual testing with GXX_TESTSUITE_STDS=98,11,14,17,20,2b it fails:
FAIL: g++.dg/pr109524.C -std=gnu++2b (test for excess errors)
.../gcc/testsuite/g++.dg/pr109524.C: In function 'nn hh(nn)':
.../gcc/testsuite/g++.dg/pr109524.C:35:12: error: cannot bind non-const
lvalue reference of type 'nn&' to an rvalue of type 'nn'
.../gcc/testsuite/g++.dg/pr109524.C:17:6: note: initializing argument 1
of 'nn::nn(nn&)'
The following patch fixes that and I've verified it doesn't change
anything on what the test was testing, it still ICEs in r13-7198 and
passes in r13-7203, now in all language modes (except for 98 where
it is intentionally UNSUPPORTED).
2023-04-19 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/109524
* g++.dg/pr109524.C (nn::nn): Change argument type from nn & to
const nn &.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug tree-optimization/109524] [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre
2023-04-15 10:27 [Bug tree-optimization/109524] New: [13 Regression] ICE: SIGSEGV in remove_unreachable::remove_and_update_globals (tree-vrp.cc:136) with -O3 -fno-tree-forwprop -fnon-call-exceptions -fno-tree-ccp -fno-tree-fre zsojka at seznam dot cz
` (12 preceding siblings ...)
2023-04-19 8:04 ` cvs-commit at gcc dot gnu.org
@ 2023-04-19 8:09 ` cvs-commit at gcc dot gnu.org
13 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-04-19 8:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109524
--- Comment #13 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:865d712a9a20eed444ce61a0a0106534479bedf1
commit r13-7224-g865d712a9a20eed444ce61a0a0106534479bedf1
Author: Jakub Jelinek <jakub@redhat.com>
Date: Wed Apr 19 10:01:04 2023 +0200
testsuite: Fix up pr109524.C for -std=c++23 [PR109524]
This testcase was reduced such that it isn't valid C++23, so with my
usual testing with GXX_TESTSUITE_STDS=98,11,14,17,20,2b it fails:
FAIL: g++.dg/pr109524.C -std=gnu++2b (test for excess errors)
.../gcc/testsuite/g++.dg/pr109524.C: In function 'nn hh(nn)':
.../gcc/testsuite/g++.dg/pr109524.C:35:12: error: cannot bind non-const
lvalue reference of type 'nn&' to an rvalue of type 'nn'
.../gcc/testsuite/g++.dg/pr109524.C:17:6: note: initializing argument 1
of 'nn::nn(nn&)'
The following patch fixes that and I've verified it doesn't change
anything on what the test was testing, it still ICEs in r13-7198 and
passes in r13-7203, now in all language modes (except for 98 where
it is intentionally UNSUPPORTED).
2023-04-19 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/109524
* g++.dg/pr109524.C (nn::nn): Change argument type from nn & to
const nn &.
(cherry picked from commit 794ffdb0fb6312ce07af0bfc797bef9f4cff4c61)
^ permalink raw reply [flat|nested] 15+ messages in thread