Skip to content
Snippets Groups Projects
Commit cc284d9c authored by Marek Polacek's avatar Marek Polacek Committed by Marek Polacek
Browse files

PR c++/87068 - missing diagnostic with fallthrough statement.

	* gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
	at the end of a seq, save its location to walk_stmt_info.
	(expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
	a switch.

	* c-c++-common/Wimplicit-fallthrough-37.c: New test.

From-SVN: r269288
parent 80d6ca01
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment