This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Implement -Wswitch-fallthrough


On 07/12/2016 10:04 AM, Marek Polacek wrote:
On Tue, Jul 12, 2016 at 09:59:37AM -0600, Jeff Law wrote:
On 07/12/2016 04:30 AM, Marek Polacek wrote:
On Tue, Jul 12, 2016 at 12:27:31PM +0200, Richard Biener wrote:
If [[fallthrough]]
was approved for C++17 is there sth similar proposed for C?  Like a keyword
__Fallthrough?

I don't think there is.
But maybe there should be ;-)  We've got a couple folks (Martin S and
Carlos) that participate in that standards body and could propose it.

I think you're right.  I'd happily participate in proposing / implementing
__Fallthrough.

Given that the C++ attribute has been approved for C++ 17 I think
it would make sense to consider its equivalent for C2X.  I can help
you put a proposal together for the upcoming C meeting in October.

Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]