re PR c++/86546 (ICE on invalid: tree_class_check_failed())
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 28 Aug 2018 15:01:15 +0000 (15:01 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 28 Aug 2018 15:01:15 +0000 (15:01 +0000)
commitf30bafb7fcf78e1472cb6cadc6e953d1586a0db3
tree8b1a3e3a82da9257fd4bc464e7c94f37e5a34c24
parent1978408086a9df584d2cdb3f36e6639de5a28459
re PR c++/86546 (ICE on invalid: tree_class_check_failed())

/cp
2018-08-28  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/86546
* decl.c (finish_case_label): If the type is erroneous early
return error_mark_node.

/testsuite
2018-08-28  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/86546
* g++.dg/other/switch4.C: New.

From-SVN: r263921
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/switch4.C [new file with mode: 0644]