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++/20475] static_cast falsely allows const to be cast away


------- Additional Comments From schlie at comcast dot net  2005-05-15 22:50 -------
(In reply to comment #1)
> With -Wwrite-strings, I do get a warning:
> t.cc:3: warning: deprecated conversion from string constant to �char*�'

- arguably, this warning should always be on, and only optionally turned off
   when one want's to live dangeriously; it would seem.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20475


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