c: Fix up c_parser_has_attribute_expression [PR101176]
authorJakub Jelinek <jakub@redhat.com>
Thu, 24 Jun 2021 13:58:02 +0000 (15:58 +0200)
committerJakub Jelinek <jakub@redhat.com>
Thu, 24 Jun 2021 13:58:02 +0000 (15:58 +0200)
commit178fb8df9315f2f8f45b7fe5faf11a9c2912cc28
tree77b7f56ba08c34edeab910ebbaedfb6918da183c
parentfdc5522fb04b4a820b28c4d1f16f54897f5978de
c: Fix up c_parser_has_attribute_expression [PR101176]

This function keeps src_range member of the result uninitialized, which at
least under valgrind can show up later when those uninitialized location_t's
can make it into the IL or location_t hash tables.

2021-06-24  Jakub Jelinek  <jakub@redhat.com>

PR c/101176
* c-parser.c (c_parser_has_attribute_expression): Set source range for
the result.
gcc/c/c-parser.c