[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-bugs
Subject:    [Bug c/69798] ICE on invalid code on x86_64-linux-gnu in c_parser_braced_init, at c/c-parser.c:4338
From:       "mpolacek at gcc dot gnu.org" <gcc-bugzilla () gcc ! gnu ! org>
Date:       2016-02-29 15:44:52
Message-ID: bug-69798-4-pD3VYEh3oK () http ! gcc ! gnu ! org/bugzilla/
[Download RAW message or body]

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69798

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
There are two c_parser_postfix_expression calls that should probably be guarded
with something like

 8044               if (c_parser_peek_2nd_token (parser)->type !=
CPP_OPEN_PAREN
 8045                   || c_parser_peek_token (parser)->id_kind != C_ID_ID)
 8046                 {
 8047                   c_parser_error (parser, "expected function-name
%<(%>");
 8048                   expr.value = error_mark_node;
 8049                 }=
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic