This is the mail archive of the
gcc-patches@gcc.gnu.org
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: <1290341810.99812627@192.168.2.229>
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.
>