re PR c/83595 (ICE: in linemap_macro_map_lookup, at libcpp/line-map.c:1008 on invalid...
authorJakub Jelinek <jakub@redhat.com>
Sun, 31 Dec 2017 23:52:41 +0000 (00:52 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sun, 31 Dec 2017 23:52:41 +0000 (00:52 +0100)
commit913884f792bf4ba684ef4513cf79168d37d86e92
tree9c53b4ced0d7b041c52b65821e840ca33e21a678
parent0f3f0e4e97a0d564f87cbd8a7dfdaf9be3665fe3
re PR c/83595 (ICE: in linemap_macro_map_lookup, at libcpp/line-map.c:1008 on invalid code)

PR c/83595
* c-parser.c (c_parser_braced_init, c_parser_initelt,
c_parser_conditional_expression, c_parser_cast_expression,
c_parser_sizeof_expression, c_parser_alignof_expression,
c_parser_postfix_expression, c_parser_omp_declare_reduction,
c_parser_transaction_expression): Use set_error () method instead
of setting value member to error_mark_node.

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

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