This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70639] internal compiler error: in guard_tinfo_to_string, at c-family/c-indentation.c:560
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 13 Apr 2016 16:29:19 +0000
- Subject: [Bug c++/70639] internal compiler error: in guard_tinfo_to_string, at c-family/c-indentation.c:560
- Auto-submitted: auto-generated
- References: <bug-70639-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70639
--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Apr 13 16:28:46 2016
New Revision: 234952
URL: https://gcc.gnu.org/viewcvs?rev=234952&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/c-c++-common/Wmisleading-indentation-4.c
Modified:
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-indentation.c
trunk/gcc/testsuite/ChangeLog