[Bug c++/80729] New: [GCC 6, 7] -Wuseless-cast doesn't detect casting string literals to (const char*)
eugene.zelenko at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri May 12 22:24:00 GMT 2017
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.
More information about the Gcc-bugs
mailing list