re PR c++/70639 (internal compiler error: in guard_tinfo_to_string, at c-family/c...
authorMarek Polacek <polacek@redhat.com>
Wed, 13 Apr 2016 16:28:46 +0000 (16:28 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 13 Apr 2016 16:28:46 +0000 (16:28 +0000)
commitb3a77f2137ef26d4d74cc40af7a42be7901ac98d
treeaf4aa61b9b882456a43642bc3e92952010b2e8ac
parent99cd9857c01234bb5b6cbff54e1bd2a400c04179
re PR c++/70639 (internal compiler error: in guard_tinfo_to_string, at c-family/c-indentation.c:560)

PR c++/70639
* c-indentation.c (should_warn_for_misleading_indentation): Bail out
for switch statements, too.

* c-c++-common/Wmisleading-indentation-4.c: New test.

From-SVN: r234952
gcc/c-family/ChangeLog
gcc/c-family/c-indentation.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wmisleading-indentation-4.c [new file with mode: 0644]