Are string literals _always_ allocated in the RO section?
jlh
jlh@gmx.ch
Sun Jan 16 03:14:00 GMT 2005
Denis Zaitsev wrote:
> Should it be considered as a bug?
Not a bug, but surely a missed opportunity to issue a warning, which
3.4.3 doesn't with -Wall. "y" is not writable and should therefore
be of type 'const char *' making the conversion to 'char *' invalid.
jlh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20050116/4f1adefb/attachment.sig>
More information about the Gcc
mailing list