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]
Other format: [Raw text]

Re: Fix for PR objc/34033 "compiler accepts invalid string concatenation"


On Nov 21, 2010, at 4:16 AM, "Nicola Pero" <nicola.pero@meta-innovation.com> wrote:
> This patch fixes PR objc/34033.
> 
> Summarizing, GCC was accepting any number of "@" signs, in any position, when doing string concatenation.  This patch adds the relevant checks to make sure there is a single '@' sign before each string.

Does clang or Apple's gcc accept concat with c strings and objc string?

I kinda think it should be allowed.  Essentially the final type being that of the first string.  Thoughts?

> Ok to commit ?

Ok.
> 


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