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

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Desmond Rhodes from comment #7)
> (In reply to Andrew Pinski from comment #4)
> > See PR 91547 also.
> > 
> > Basically clang's -fsanitize=integer is useless for well defined C/C++ code
> > and should NOT be used unless you how to filter out the bad reports.
> 
> I believe that this is a good report and it is useful.
> 
> Tracking subtle bugs is difficult, and I will continue to turn on
> `-fsanitize=integer` in my development.
> 
> If the construct of `size_t __nargs = -1` isn't fixed, it will prevent
> people from using the standard library.

Not really. It just means clangs option fsanitize=interger is broken for well
defined code and should not be used for code in general. If anything this is a
clang bug.

Reply via email to