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

Paul Eggert <[email protected]>
Newsgroups gmane.comp.parsers.bison.bugs
Organization UCLA Computer Science Department
Message-ID <[email protected]>
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 me.)

I approximated the problem on x86-64 by manually replacing the typedef with
'typedef char yy_state_t;'.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.