[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
me.)
I approximated the problem on x86-64 by manually replacing the typedef with
'typedef char yy_state_t;'.
- Bison 3.5 - y.tab.c generates compiler warnings, Andy Fiddaman, 2019/12/16
- Re: Bison 3.5 - y.tab.c generates compiler warnings, Andy Fiddaman, 2019/12/19
- Re: Bison 3.5 - y.tab.c generates compiler warnings, Akim Demaille, 2019/12/29
- Re: Bison 3.5 - y.tab.c generates compiler warnings, Akim Demaille, 2019/12/31
- Re: Bison 3.5 - y.tab.c generates compiler warnings, Andy Fiddaman, 2019/12/31