PR c/81289
* c-parser.c (c_parser_unary_expression): Use set_error.
* gcc.dg/noncompile/pr81289.c: New test.
From-SVN: r250821
+2017-08-02 Marek Polacek <polacek@redhat.com>
+
+ PR c/81289
+ * c-parser.c (c_parser_unary_expression): Use set_error.
+
2017-07-31 Jan Hubicka <hubicka@ucw.cz>
Martin Liska <mliska@suse.cz>
* c-typeck.c (c_finish_goto_label): Build gimple predict
- stament.
+ statement.
2017-07-31 Martin Liska <mliska@suse.cz>
else
{
c_parser_error (parser, "expected identifier");
- ret.value = error_mark_node;
+ ret.set_error ();
}
- return ret;
+ return ret;
case CPP_KEYWORD:
switch (c_parser_peek_token (parser)->keyword)
{
+2017-08-02 Marek Polacek <polacek@redhat.com>
+
+ PR c/81289
+ * gcc.dg/noncompile/pr81289.c: New test.
+
2017-08-02 Jakub Jelinek <jakub@redhat.com>
PR c++/81640
--- /dev/null
+/* PR c/81289 */
+/* { dg-do compile } */
+
+int
+fn (int mm)
+{
+ mm == *&&
+} /* { dg-error "expected identifier" } */