[Bug c++/20475] static_cast falsely allows const to be cast away

2008-08-06 Thread manu at gcc dot gnu dot org
--- Comment #12 from manu at gcc dot gnu dot org 2008-08-06 18:42 --- This always produces a warning by default now. Thus FIXED. -- manu at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/20475] static_cast falsely allows const to be cast away

2005-05-16 Thread gdr at integrable-solutions dot net
--- Additional Comments From gdr at integrable-solutions dot net 2005-05-16 09:07 --- Subject: Re: static_cast falsely allows const to be cast away schlie at comcast dot net [EMAIL PROTECTED] writes: | --- Additional Comments From schlie at comcast dot net 2005-05-16 05:07

[Bug c++/20475] static_cast falsely allows const to be cast away

2005-05-16 Thread schlie at comcast dot net
--- Additional Comments From schlie at comcast dot net 2005-05-16 13:25 --- (In reply to comment #9) Subject: Re: static_cast falsely allows const to be cast away Gabriel Dos Reis writes: | --- Additional Comments From schlie at comcast dot net 2005-05-16 | (In reply to comment

[Bug c++/20475] static_cast falsely allows const to be cast away

2005-05-16 Thread gdr at integrable-solutions dot net
--- Additional Comments From gdr at integrable-solutions dot net 2005-05-16 17:00 --- Subject: Re: static_cast falsely allows const to be cast away schlie at comcast dot net [EMAIL PROTECTED] writes: | (In reply to comment #9) | Subject: Re: static_cast falsely allows const to be

[Bug c++/20475] static_cast falsely allows const to be cast away

2005-05-15 Thread lerdsuwa at gcc dot gnu dot org
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-05-15 14:36 --- Yup, string literal should have type 'const char *'. -- What|Removed |Added

[Bug c++/20475] static_cast falsely allows const to be cast away

2005-05-15 Thread schlie at comcast dot net
--- Additional Comments From schlie at comcast dot net 2005-05-15 22:45 --- (In reply to comment #2) Yup, string literal should have type 'const char *'. I believe 'static const char []' would seem most correct? (where although 'static const' may be cast away, there's no guarantee

[Bug c++/20475] static_cast falsely allows const to be cast away

2005-05-15 Thread schlie at comcast dot net
--- 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

[Bug c++/20475] static_cast falsely allows const to be cast away

2005-05-15 Thread gdr at integrable-solutions dot net
--- Additional Comments From gdr at integrable-solutions dot net 2005-05-16 00:14 --- Subject: Re: static_cast falsely allows const to be cast away schlie at comcast dot net [EMAIL PROTECTED] writes: | --- Additional Comments From schlie at comcast dot net 2005-05-15 22:45

[Bug c++/20475] static_cast falsely allows const to be cast away

2005-05-15 Thread schlie at comcast dot net
--- Additional Comments From schlie at comcast dot net 2005-05-16 02:44 --- (In reply to comment #5) Subject: Re: static_cast falsely allows const to be cast away | Yup, string literal should have type 'const char *'. | | I believe 'static const char []' would seem most correct?

[Bug c++/20475] static_cast falsely allows const to be cast away

2005-05-15 Thread gdr at integrable-solutions dot net
--- Additional Comments From gdr at integrable-solutions dot net 2005-05-16 02:54 --- Subject: Re: static_cast falsely allows const to be cast away schlie at comcast dot net [EMAIL PROTECTED] writes: | --- Additional Comments From schlie at comcast dot net 2005-05-16 02:44

[Bug c++/20475] static_cast falsely allows const to be cast away

2005-05-15 Thread schlie at comcast dot net
--- Additional Comments From schlie at comcast dot net 2005-05-16 05:07 --- (In reply to comment #7) Subject: Re: static_cast falsely allows const to be cast away That is your view. However, not because GCC implements the ISO C++ view of types, means that GCC has a narrow view of a

[Bug c++/20475] static_cast falsely allows const to be cast away

2005-03-14 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added Keywords||accepts-invalid http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20475

[Bug c++/20475] static_cast falsely allows const to be cast away

2005-03-14 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-14 20:14 --- With -Wwrite-strings, I do get a warning: t.cc:3: warning: deprecated conversion from string constant to ‘char*’' -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20475