re PR c/84721 (ICE in c_push_function_context, at c-decl.c:9667)
authorJakub Jelinek <jakub@redhat.com>
Tue, 6 Mar 2018 20:57:30 +0000 (21:57 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 6 Mar 2018 20:57:30 +0000 (21:57 +0100)
commit849bbdb99c5c8b1a97041a533c69bbaf8376c975
treeb4378dbbf14b30df7e19093c232a5f99910a84de
parent2728bf8f131f42c43cc4b309bf4d949a0bea601d
re PR c/84721 (ICE in c_push_function_context, at c-decl.c:9667)

PR c/84721
* c-parser.c (add_debug_begin_stmt): Don't add DEBUG_BEGIN_STMT if
!building_stmt_list_p ().

* gcc.dg/pr84721.c: New test.

From-SVN: r258302
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr84721.c [new file with mode: 0644]