Re: [PATCH] c++: Implement C++ DR 2406 - [[fallthrough]] attribute and iteration statements

2023-10-26 Thread Jason Merrill
On 8/28/23 06:34, Richard Biener wrote: On Fri, 25 Aug 2023, Jakub Jelinek wrote: Hi! The following patch implements CWG 2406 - [[fallthrough]] attribute and iteration statements The genericization of some loops leaves nothing at all or just a label after a body of a loop, so if the loop is

Re: [PATCH] c++: Implement C++ DR 2406 - [[fallthrough]] attribute and iteration statements

2023-08-28 Thread Richard Biener via Gcc-patches
On Fri, 25 Aug 2023, Jakub Jelinek wrote: > Hi! > > The following patch implements > CWG 2406 - [[fallthrough]] attribute and iteration statements > The genericization of some loops leaves nothing at all or just a label > after a body of a loop, so if the loop is later followed by > case or

[PATCH] c++: Implement C++ DR 2406 - [[fallthrough]] attribute and iteration statements

2023-08-25 Thread Jakub Jelinek via Gcc-patches
Hi! The following patch implements CWG 2406 - [[fallthrough]] attribute and iteration statements The genericization of some loops leaves nothing at all or just a label after a body of a loop, so if the loop is later followed by case or default label in a switch, the fallthrough statement isn't