On Mon, Oct 10, 2011 at 12:30 PM, Paolo Carlini <paolo.carl...@oracle.com> wrote: > On 10/10/2011 07:28 PM, Gabriel Dos Reis wrote: >> >> A GCC user not interested in numerics probably won't care. However, I do >> not think that extends to people who do care about numerics and have >> literals in their program. If GCC displays an error message with literals >> truncated, it is not at clear to the user that GCC is behaving correctly: >> for one thing, the error might be mysterious and hard to understand, now the >> compiler is indicating that apparently it does not even parse and understand >> correctly his or her numbers. How if you have several numbers like that that >> differs only on the 10th digit? If the user is using an IDE that pattern >> match the output on the source code, it would be even more confusing (as it >> is now.) > > Would you like to see the max_digits10 - inspired patch for 4.7.0? Again, no > strong opinion, just let me know. Personally, I find that too quite a bit > better than the current behavior.
Yes, I suspect the max_digits10 patch would be definitely an improvement. Of course, the actual fix would be to write back what was in the input source program, but I understand that is more work that you would like to tackle or have time for.