aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/lambda.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2019-02-28 22:29:42 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2019-02-28 22:29:42 +0000
commitcc284d9cf738f0efd4dedd42476da8372d6a38d6 (patch)
treed36b846330e81bbc43a80c1d99385e483956dabf /gcc/cp/lambda.c
parent80d6ca01843d2119c913e3adf27d20204846072f (diff)
downloadgcc-cc284d9cf738f0efd4dedd42476da8372d6a38d6.zip
gcc-cc284d9cf738f0efd4dedd42476da8372d6a38d6.tar.gz
gcc-cc284d9cf738f0efd4dedd42476da8372d6a38d6.tar.bz2
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
Diffstat (limited to 'gcc/cp/lambda.c')
0 files changed, 0 insertions, 0 deletions