From d7db8752d80acb53a2b7baf9ec7cdc15d4c7830b Mon Sep 17 00:00:00 2001 From: "James K. Lowden" <jklowden@symas.com> Date: Wed, 20 Dec 2023 11:35:04 -0500 Subject: [PATCH] NIST IF126A passes again --- gcc/cobol/parse.y | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/cobol/parse.y b/gcc/cobol/parse.y index b1c97f4d0e47..8631cf6026a9 100644 --- a/gcc/cobol/parse.y +++ b/gcc/cobol/parse.y @@ -8824,7 +8824,11 @@ intrinsic: intrinsic0 | intrinsic_locale ; -numval_locale: %empty { $$.is_locale = false; $$.arg2 = NULL; } +numval_locale: %empty { + static cbl_refer_t empty; + $$.is_locale = false; + $$.arg2 = ∅ + } | LOCALE NAME { $$.is_locale = true; $$.arg2 = NULL; yyerror("unimplemented: NUMVAL_C LOCALE"); YYERROR; } -- GitLab