re PR c/78285 (error on duplicate switch label where a note should be)
authorMarek Polacek <polacek@redhat.com>
Thu, 17 Nov 2016 01:23:19 +0000 (01:23 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 17 Nov 2016 01:23:19 +0000 (01:23 +0000)
commit0d939c95759f393cd4eb6b88c04e443a55fe6ddb
tree6df7afbbe70a4017d27442552e6b805fed085c7a
parentc10e3d7f2aaf10e3ef6c3ce8ba7cbb3123f62df3
re PR c/78285 (error on duplicate switch label where a note should be)

PR c/78285
* c-common.c (c_add_case_label): Turn error_at calls into inform.

* gcc.dg/switch-5.c: Turn several dg-errors into dg-messages.
* g++.dg/ext/case-range2.C: Likewise.

From-SVN: r242532
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/case-range2.C
gcc/testsuite/gcc.dg/switch-5.c