From f1151bdf7e67bdd100703e623cd9c35d179a859c Mon Sep 17 00:00:00 2001 From: "James K. Lowden" <jklowden@symas.com> Date: Tue, 14 Jan 2025 15:43:30 -0500 Subject: [PATCH] initialize yylloc, just to be safe --- gcc/cobol/scan_ante.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/cobol/scan_ante.h b/gcc/cobol/scan_ante.h index b007ac0e4015..eeaf78129040 100644 --- a/gcc/cobol/scan_ante.h +++ b/gcc/cobol/scan_ante.h @@ -391,7 +391,10 @@ update_location_col( const char str[], int correction = 0) { } } - +#define YY_USER_INIT do { \ + static YYLTYPE ones = {1,1, 1,1}; \ + yylloc = ones; \ + } while(0) /* * YY_DECL is the generated lexer. The parser calls yylex(). yylex() invokes -- GitLab