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;'.