This is the mail archive of the gcc@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]

Re: Are string literals _always_ allocated in the RO section?


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

Attachment: signature.asc
Description: OpenPGP digital signature


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