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++/80729] New: [GCC 6, 7] -Wuseless-cast doesn't detect casting string literals to (const char*)


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

            Bug ID: 80729
           Summary: [GCC 6, 7] -Wuseless-cast doesn't detect casting
                    string literals to (const char*)
           Product: gcc
           Version: 6.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: eugene.zelenko at gmail dot com
  Target Milestone: ---

-Wuseless-cast doesn't detect casting string literals to (const char*), like

(const char*) "string"

I tried GCC 6.3 and 7.1 on C++98/03 code base.

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