From 52e8254b548a06c67fc1c130040925d169b8d2b0 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 13 Jul 2017 07:00:16 +0000 Subject: [PATCH] parse.y: flush debug output * parse.y (parser_compile_error): flush debug output before compile error message, to keep the order. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 1 + 1 file changed, 1 insertion(+) diff --git a/parse.y b/parse.y index 410bbdd759..3c76d99585 100644 --- a/parse.y +++ b/parse.y @@ -11057,6 +11057,7 @@ parser_compile_error(struct parser_params *parser, const char *fmt, ...) { va_list ap; + rb_io_flush(parser->debug_output); parser->error_p = 1; va_start(ap, fmt); parser->error_buffer =