[Bug middle-end/98465] Bogus warning stringop-overread wuth -std=gnu++20 -O2 and std::string::insert
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 13 19:02:35 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98465
--- Comment #12 from Martin Sebor <msebor at gcc dot gnu.org> ---
(In reply to Jeffrey A. Law from comment #10)
> What about fixing the -g interaction? Much like how -g shouldn't affect
> code generation, it probably shouldn't be affecting warnings like this.
>
> There may be more we can/should do here, but that seems like a good place to
> start.
Agreed, I'm looking into that too. Fixing it won't avoid the warning though,
just make it more consistent (see comment #4).
More information about the Gcc-bugs
mailing list