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: Pascal Strings -- TAKE FOUR


+ Pascal-style literals are treated by the compiler as being of type
+ @samp{const unsigned char []} in C++ and @samp{unsigned char []} (or
+ @samp{const unsigned char []}, if the @w{@option{-Wwrite-strings}}
+ option is given) in C.  

Yes, this is what -Wwrite-strings does (in a way), but is this really 
correct?  -Wwrite-strings is really a warning flag.  String literals in 
(GNU) C are really constants unless -fwritable-strings is given.

R.


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