http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34033
Nicola Pero <nicola at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2010.11.20 19:27:50 CC| |nicola at gcc dot gnu.org Ever Confirmed|0 |1 Severity|normal |minor --- Comment #2 from Nicola Pero <nicola at gcc dot gnu.org> 2010-11-20 19:27:50 UTC --- Yes, this is a problem. The following example shows a number of cases: #include <objc/objc.h> #include <objc/NXConstStr.h> /* The following are correct, and are accepted. */ id test = @"test"; id test1 = @"te" @"st"; /* The following are not correct, but are accepted. */ id test2 = @"te" "st"; id test3 = "te" @ "st"; id test4 = "test"@; id test5 = "test"@@; id test6 = @"te" @@"st"; /* The following are not correct, and are rejected. */ id test7 = @@"test"; It's not too bad, because the correct syntax is correctly recognized, but some better error checking would be good. Thanks