https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79929

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |trippels at gcc dot gnu.org

--- Comment #12 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to Dominique d'Humieres from comment #11)
> On x86_64-apple-darwin16 I see the warning
> 
> Warning: '__builtin_memset': specified size 18446744073709551611 exceeds
> maximum object size 9223372036854775807 [-Wstringop-overflow=]
> 
> for -Os and -O2 and above. I don't understand why this case is not detected
> with the -Wcharacter-truncation flag: the length of "bug: " // yerrmsg is
> the len(yerrmsg)+5, thus will be truncated when assigned to yerrmsg.
> 
> Apparently the problem comes from the fact that len(yerrmsg) is not known at
> compile time, but I don't understand why the warning use nonsensical numbers.

I agree that these huge decimal numbers look ridiculous. 
At the very least they should be printed as hex numbers.

Reply via email to