https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105794
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2022-05-31
CC| |mpolacek at gcc dot gnu.org
Keywords| |diagnostic
Status|UNCONFIRMED |NEW
Target Milestone|--- |12.2
Priority|P3 |P2
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed, started with r12-5638-ga3e75c1491cd2d
commit a3e75c1491cd2d501081210925a89a65b1c1e5e5
Author: Jason Merrill <[email protected]>
Date: Thu Nov 25 10:50:59 2021 -0500
c++: don't fold away 'if' with constant condition
It changed:
--- 105794.ii.005t.original 2022-05-31 16:12:51.932479674 -0400
+++ 105794.ii.005t.original.1 2022-05-31 16:10:21.158400398 -0400
@@ -502,13 +502,16 @@ if (<<cleanup_point std::__exception_ptr
__cxa_end_catch ();
}
} >>> >>>;
- <<cleanup_point <<< Unknown tree: expr_stmt
+ if (1)
+ {
+ <<cleanup_point <<< Unknown tree: expr_stmt
<<< Unknown tree: throw_expr
<<cleanup_point TARGET_EXPR <D.7348, __cxa_allocate_exception (8)>;,
*(struct exception *) D.7348 = TARGET_EXPR <D.7345, <<< Unknown tree:
aggr_init_expr
4
__ct_comp
D.7345
(struct exception *) <<< Unknown tree: void_cst >>> >>>>;>>;, __cxa_throw
(D.7348, (void *) &_ZTISt9exception, __dt_comp ); >>> >>>>>;
+ }
}
finally
{