[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bison 3.5 - y.tab.c generates compiler warnings

From: Paul Eggert
Subject: Re: Bison 3.5 - y.tab.c generates compiler warnings
Date: Wed, 18 Dec 2019 23:59:50 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2

On 12/18/19 10:22 PM, Akim Demaille wrote:
> I was unable to reproduce that warning 
> (https://travis-ci.org/akimd/bison/builds/626034753)

I suspect you need a platform where plain 'char' is unsigned, so that 'typedef
yytype_uint8 yy_state_t;' is treated as if it were 'typedef char yy_state_t;'
which means yy_state_t indexes provoke the diagnostic. (A GCC bug, if you ask 

I approximated the problem on x86-64 by manually replacing the typedef with
'typedef char yy_state_t;'.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]