--- 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
--- 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
--- 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
--- 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
--- 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
--- 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
--- 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
--- 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
--- 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?
--- 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
--- 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
--
What|Removed |Added
Keywords||accepts-invalid
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20475
--- 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
13 matches
Mail list logo