This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/78679] Produce a warning on `int + string literal`


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]