On Wed, 19 Mar 2025 12:13:47 -0500 (CDT)
Robert Dubner <rdub...@symas.com> wrote:

> In file included from ../../gcc/cobol/scan.l:42:
> cobol/parse.h:932:12: error: 'NONE' conflicts with a previous
> declaration 932 |     NONE = 881,                    /* NONE  */

Here, NONE names a COBOL token because (I assume without looking) that
NONE is a COBOL keyword in some context.  

Richard said, 
> This required putting GCCs own 'NONE' in a scoped enum

Elsewhere in the parser where there was a conflict like that, I renamed
the token.  For example, the COBOL word TRUE uses a token named
TRUE_kw.  I don't mind either way; your solution has less impact on the
parser.  

--jkl

Reply via email to