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

Re: Patch to change warn_write_strings to flag_const_strings


>>>>> Carlo Wood <carlo@runaway.xs4all.nl> writes:

> | For C++, string constants are `const char[]' by default, so I'd like to
> | change the flag that controls this behavior in c-common.c, and in any case
> | it seems odd to control semantics with a warn_* flag.  What do you think?

> Unfortunately, I don't understand the patch :/.
> Does this change the behaviour for C++ such that string constants
> are ALWAYS const?  Independent of any -W... flag?

Not this patch, but the patch to the C++ frontend that depends on it, yes.

Jason


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