This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/78679] Produce a warning on `int + string literal`
- From: "egallager at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 29 Aug 2017 22:12:07 +0000
- Subject: [Bug c++/78679] Produce a warning on `int + string literal`
- Auto-submitted: auto-generated
- References: <bug-78679-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78679
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=62181
--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #1)
>
> So I guess confirmed that g++ could warn earlier about the addition, too, to
> prevent it from leading to further issues. Might be related to requests for
> a -Wstring-plus-int, but in reverse order.
The bug for -Wstring-plus-int is bug 62181, by the way, and it led to this
patch series, which I think is still being worked on:
https://gcc.gnu.org/ml/gcc-patches/2017-06/msg00729.html