This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/16816] New: obj-c++ parser error with multi-colon selectors
- From: "ratmice at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jul 2004 05:16:23 -0000
- Subject: [Bug other/16816] New: obj-c++ parser error with multi-colon selectors
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
using the objc-improvements-branch checked out 07-28
main.mm: In function `int main()':
main.mm:15: error: expected `)' before '::' token
main.mm:15: error: expected `,' or `;' before '::' token
anyways.. this same file compiles correctly as a .m
#include <objc/Object.h>
@interface Foo : Object
-(int)foo:(id)bar :(id)baz;
@end
@implementation Foo
-(int)foo:(id)bar :(id)baz
{
return 0;
}
@end
int main()
{
SEL foo = @selector(foo::);
return 0;
}
--
Summary: obj-c++ parser error with multi-colon selectors
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: other
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ratmice at yahoo dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16816