bug-bison
[Top][All Lists]
Advanced

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

Re: [PATCH 0/3] yacc: compute the best type for the state number


From: Paul Eggert
Subject: Re: [PATCH 0/3] yacc: compute the best type for the state number
Date: Sat, 5 Oct 2019 03:30:14 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

On 10/5/19 3:07 AM, Akim Demaille wrote:

This is a bug in Clang, as both operands of ? are ptrdiff_t. You might try 
filing a bug report with the Clang folks.

Maybe the error in actually in the division by the unsigned and the diagnostic is wrong.

Although that's possible, it'd still be a Clang bug. There should be no diagnostic for arithmetic on constants where the result is mathematically correct. GCC generally gets this right.

My experience in other projects is that we don't have time to maintain workarounds for Clang warning bugs (or for warning bugs in old GCCs, for that matter). But if you want to take on the task,....



reply via email to

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