This is the mail archive of the
mailing list for the GCC project.
Re: Fix for PR objc/34033 "compiler accepts invalid string concatenation"
- From: Mike Stump <mikestump at comcast dot net>
- To: Nicola Pero <nicola dot pero at meta-innovation dot com>
- Cc: "gcc-patches at gnu dot org" <gcc-patches at gnu dot org>
- Date: Sun, 21 Nov 2010 08:54:06 -0800
- Subject: Re: Fix for PR objc/34033 "compiler accepts invalid string concatenation"
- References: <email@example.com>
On Nov 21, 2010, at 4:16 AM, "Nicola Pero" <firstname.lastname@example.org> 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 ?